Skip to content

crosbymichael/botbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

botbot

A package inspired by urfave/cli for writting discord bots in the same manner as you write CLI applicaitons.

Example

bot, err := botbot.New("test", clix.GlobalString("token"))
if err != nil {
	return err
}
bot.Commands = []*botbot.Command{
	timeCommand,
}
if err := bot.Start(); err != nil {
	return err
}
<-s
return bot.Close()
var timeCommand = &botbot.Command{
	Name:        "time",
	Description: "returns the current time",
	Action: func(ctx *botbot.Context) error {
		now := time.Now()
		return ctx.Send(now.Format(time.RFC3339))
	},
}

About

Discord bot package inspired by urfave/cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages