Skip to content

Commit

Permalink
GIGA: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
celestix committed Aug 12, 2022
1 parent 88bc386 commit 351ac33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
14 changes: 7 additions & 7 deletions modules/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", `
Expand All @@ -33,11 +33,11 @@ func (m *module) LoadMisc(dispatcher *dispatcher.CustomDispatcher) {
• <code>.taglogger</code>: Enable/disable mentions logger.
• <code>.alive</code>: 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 {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 351ac33

Please sign in to comment.