diff options
| author | Fuwn <[email protected]> | 2020-11-02 16:31:17 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-11-02 16:31:17 -0800 |
| commit | 11e768178d08d631b38703d8cc38f2aa9ff83cdb (patch) | |
| tree | 858729a395e8e661bc6e425464d4dd022c95054a /src/core/handler.rs | |
| parent | chore/ fix: commit file that i forgot to commit (diff) | |
| download | dep-core-next-11e768178d08d631b38703d8cc38f2aa9ff83cdb.tar.xz dep-core-next-11e768178d08d631b38703d8cc38f2aa9ff83cdb.zip | |
refactor, chore, feat (desc)
refactor:
- `Cargo.toml` openssl patch
- rename `DBOTS_TOKEN` environment variable
feat:
- new `wisp` command information
- support server, bot invite, feature request, bot discovery sites.
- use `CARGO_PKG_VERSION` environment variable to show version in presence.
- `privacypolicy` command
- prime more of the rocket webserver
Diffstat (limited to 'src/core/handler.rs')
| -rw-r--r-- | src/core/handler.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/handler.rs b/src/core/handler.rs index 7d5bbfa..2074567 100644 --- a/src/core/handler.rs +++ b/src/core/handler.rs @@ -106,18 +106,12 @@ impl EventHandler for Handler { // let guild_count = guilds.len(); // ctx.set_game(Game::listening(&format!("{} guilds | m!help", guild_count))); - ctx.set_game(Game::playing("w.help | v0.1.0")); + // ctx.set_game(Game::playing("w.help | v0.1.0")); + ctx.set_game(Game::playing(&*format!("w.help | v{}", env!("CARGO_PKG_VERSION")))); info!("Caching complete."); } fn message(&self, ctx: Context, message: Message) { - // check_error!(message.guild().unwrap().read() - // .edit_member(712088369206919269, |member| member.nickname("Wisp"))); - - if message.content.contains("uwu!") { - check_error!(message.channel_id.say("Uwufier has been re-branded! However, due to the current limitations in place for verified Discord bots, we are still awaiting for our username change to go through, until then, meet Wisp, your all-in-one Discord companion. For future reference, please use the new prefix; `w.`!")); - } - if message.mention_everyone { check_error!(message.react("👀")) } |