From 351ac3378083316647a3a0ef3cc9598319872efb Mon Sep 17 00:00:00 2001 From: Anony <73958752+anonyindian@users.noreply.github.com> Date: Fri, 12 Aug 2022 10:34:12 +0000 Subject: [PATCH] GIGA: upgrade deps --- go.mod | 2 +- go.sum | 2 ++ modules/misc.go | 14 +++++++------- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/go.mod b/go.mod index d4ac222..34dc40b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/PaulSonOfLars/gotgbot/v2 v2.0.0-rc.9 - github.com/anonyindian/gotgproto v1.0.0-beta08.0.20220811082815-57b7254ee5d4 + github.com/anonyindian/gotgproto v1.0.0-beta08.0.20220812101930-fb0f873515a2 github.com/anonyindian/logger v1.0.0-alpha.3 github.com/go-git/go-git/v5 v5.4.2 github.com/go-redis/redis v6.15.9+incompatible diff --git a/go.sum b/go.sum index f44c771..0eeff2f 100644 --- a/go.sum +++ b/go.sum @@ -13,6 +13,8 @@ github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c= github.com/anonyindian/gotgproto v1.0.0-beta08.0.20220811082815-57b7254ee5d4 h1:ULG/nxxOlrG9N+cmsRsJ784UlNpUuhClCD9BChw+c2g= github.com/anonyindian/gotgproto v1.0.0-beta08.0.20220811082815-57b7254ee5d4/go.mod h1:RU2UDoqFSUGQYTOR7qD2oWvcmhsRe9o3tgzW6M7JqwA= +github.com/anonyindian/gotgproto v1.0.0-beta08.0.20220812101930-fb0f873515a2 h1:8mDrT9JYyX+oVwecQ2IT4hmFpmHEdG+fI8olU1vnTBM= +github.com/anonyindian/gotgproto v1.0.0-beta08.0.20220812101930-fb0f873515a2/go.mod h1:RU2UDoqFSUGQYTOR7qD2oWvcmhsRe9o3tgzW6M7JqwA= github.com/anonyindian/logger v1.0.0-alpha.3 h1:fYQFvadiiMI7hxW3VZNJXFzEWgmz/wgRB9tVey3oLDo= github.com/anonyindian/logger v1.0.0-alpha.3/go.mod h1:jb51uiKdlLOMtKakbyqsbrxTNr+Zt7qh2Va8sl5trTk= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= diff --git a/modules/misc.go b/modules/misc.go index 00fa9a1..61ea829 100644 --- a/modules/misc.go +++ b/modules/misc.go @@ -21,7 +21,7 @@ import ( "github.com/gotd/td/tg" ) -func (m *module) LoadMisc(dispatcher *dispatcher.CustomDispatcher) { +func (m *module) LoadMisc(dp *dispatcher.CustomDispatcher) { var l = m.Logger.Create("MISC") defer l.ChangeLevel(logger.LevelInfo).Println("LOADED") helpmaker.SetModuleHelp("misc", ` @@ -33,11 +33,11 @@ func (m *module) LoadMisc(dispatcher *dispatcher.CustomDispatcher) { • .taglogger: Enable/disable mentions logger. • .alive: Use this command to check whether the userbot is alive or not. `) - dispatcher.AddHandler(handlers.NewCommand("ping", authorised(ping))) - dispatcher.AddHandler(handlers.NewCommand("alive", authorised(alive))) - dispatcher.AddHandler(handlers.NewCommand("json", authorised(jsonify))) - dispatcher.AddHandler(handlers.NewCommand("taglogger", authorised(tagLogger))) - dispatcher.AddHandlerToGroup(handlers.NewMessage(filters.Message.All, checkTags), -1) + dp.AddHandler(handlers.NewCommand("ping", authorised(ping))) + dp.AddHandler(handlers.NewCommand("alive", authorised(alive))) + dp.AddHandler(handlers.NewCommand("json", authorised(jsonify))) + dp.AddHandler(handlers.NewCommand("taglogger", authorised(tagLogger))) + dp.AddHandlerToGroup(handlers.NewMessage(filters.Message.All, checkTags), -1) } func jsonify(ctx *ext.Context, u *ext.Update) error { @@ -93,7 +93,7 @@ func ping(ctx *ext.Context, u *ext.Update) error { timeThen := time.Now() utils.TelegramClient.Ping(ctx) timeNow := time.Since(timeThen) - text := entityhelper.Plain("🧭PONG🧭\n").Code(strconv.FormatInt(timeNow.Milliseconds(), 10) + "ms") + text := entityhelper.Plain("PONG\n").Code(strconv.FormatInt(timeNow.Milliseconds(), 10) + "ms") ctx.EditMessage(u.EffectiveChat().GetID(), &tg.MessagesEditMessageRequest{ ID: u.EffectiveMessage.ID, Message: text.String,