Skip to content

Commit

Permalink
Added e621 module + new command builders
Browse files Browse the repository at this point in the history
  • Loading branch information
DownloadableFox committed Jun 7, 2024
1 parent 1c9026d commit 3f0d2e2
Show file tree
Hide file tree
Showing 7 changed files with 1,115 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ import (

"github.com/bwmarrin/discordgo"
"github.com/downloadablefox/twotto/modules/debug"
"github.com/downloadablefox/twotto/modules/e621"
"github.com/downloadablefox/twotto/modules/extra"
"github.com/downloadablefox/twotto/modules/ledger"
"github.com/downloadablefox/twotto/modules/whitelist"
"github.com/google/wire"
"github.com/jackc/pgx/v5/pgxpool"
)
)

type Config struct {
Token string `usage:"Discord bot token" required:"true" env:"TOKEN"`
Expand Down Expand Up @@ -63,5 +64,8 @@ func bootstrap(client *discordgo.Session, config *Config) error {
ledgerManager := InitializeLedgerManager(client, pool)
ledger.RegisterModule(client, ledgerManager)

e621Client := e621.NewE621Service("twotto/1.0 (DownloadableFox)")
e621.RegisterModule(client, e621Client)

return nil
}
Loading

0 comments on commit 3f0d2e2

Please sign in to comment.