All Projects → Necroforger → dgrouter

Necroforger / dgrouter

Licence: other
router to help speed up bot development in discordgo

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to dgrouter

MusicBot
A multi-server music bot for Discord built in Go
Stars: ✭ 44 (-20%)
Mutual labels:  discordgo
yagpdb
Yet another general purpose discord bot
Stars: ✭ 916 (+1565.45%)
Mutual labels:  discordgo
shinpuru
シンプル - Discord Bot with backups, moderation, karma ranking, a starboard, code execution, raid alerting, a web interface, twitch notifications and more!
Stars: ✭ 141 (+156.36%)
Mutual labels:  discordgo
discord-key-bot
A bot for discord that accepts, announces, and gives out keys
Stars: ✭ 14 (-74.55%)
Mutual labels:  discordgo
shards
Configurable, scalable and automatic sharding library for `discordgo`, done right ✔️
Stars: ✭ 18 (-67.27%)
Mutual labels:  discordgo
discord-downloader-go
A Discord bot program to download and otherwise handle files sent in Discord channels with extensive configuration. Can be used as a genuine Discord Bot or user account / self-bot
Stars: ✭ 169 (+207.27%)
Mutual labels:  discordgo
Discordgo
(Golang) Go bindings for Discord
Stars: ✭ 2,582 (+4594.55%)
Mutual labels:  discordgo
disgord
(golang) Google Go Discord Bot
Stars: ✭ 53 (-3.64%)
Mutual labels:  discordgo
iftar-bot
🕌 Iftar Bot, Plays adzan sound on iftar time (Ramadan special ✨)
Stars: ✭ 16 (-70.91%)
Mutual labels:  discordgo
ephemeral-roles
A Discord bot for managing ephemeral roles based upon voice channel member presence.
Stars: ✭ 57 (+3.64%)
Mutual labels:  discordgo
DiscordGo
Discord C2 for Redteam....Need a better name
Stars: ✭ 55 (+0%)
Mutual labels:  discordgo
starboard
A starboard dedicated Discord bot.
Stars: ✭ 18 (-67.27%)
Mutual labels:  discordgo
replbot
Slack/Discord bot for running interactive REPLs and shells from a chat.
Stars: ✭ 169 (+207.27%)
Mutual labels:  discordgo

dgrouter

Router to simplify command routing in discord bots. exrouter provides some extra features like wrapping the router type to add command handlers which typecast to its own Context type.

If you make any interesting changes feel free to submit a Pull Request

Features

example

router.On("ping", func(ctx *exrouter.Context) { ctx.Reply("pong")}).Desc("responds with pong")

router.On("avatar", func(ctx *exrouter.Context) {
	ctx.Reply(ctx.Msg.Author.AvatarURL("2048"))
}).Desc("returns the user's avatar")

router.Default = router.On("help", func(ctx *exrouter.Context) {
	var text = ""
	for _, v := range router.Routes {
		text += v.Name + " : \t" + v.Description + "\n"
	}
	ctx.Reply("```" + text + "```")
}).Desc("prints this help menu")
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].