diff options
| author | 8cy <[email protected]> | 2020-05-05 17:30:26 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-05-05 17:30:26 -0700 |
| commit | a62dda297388e1d1b7e36ff37dbd667cd12a8066 (patch) | |
| tree | 8672c5a0b3dc68f18e4b117a615b9db07c5b7b6d /src | |
| parent | add api, change sementic version tag (diff) | |
| download | dep-core-a62dda297388e1d1b7e36ff37dbd667cd12a8066.tar.xz dep-core-a62dda297388e1d1b7e36ff37dbd667cd12a8066.zip | |
make default status cmd response uwufier's status
Diffstat (limited to 'src')
| -rw-r--r-- | src/bot.ts | 1 | ||||
| -rw-r--r-- | src/commands/bot/status.ts | 15 | ||||
| -rw-r--r-- | src/config.json | 2 |
3 files changed, 15 insertions, 3 deletions
@@ -63,6 +63,7 @@ client.once('ready', async () => { console.log() // i would use a set interval in the main msg body but this is better for now because during maintenance you tend to refresh refresh a lot + // kinda crap if you forget to change uppity's status off of maintainence... 2020/05/05, 17:29 if ((await client.users.fetch('705537104339402815')).presence.activities[0].name == 'maintenance') { client.user?.setActivity('uwu!help | Maintenance', { type: 'WATCHING' diff --git a/src/commands/bot/status.ts b/src/commands/bot/status.ts index 272806f..7fe5bd0 100644 --- a/src/commands/bot/status.ts +++ b/src/commands/bot/status.ts @@ -34,7 +34,7 @@ module.exports = class StatusBot extends Command { guarded: true }); } - run(msg, { uType, uActivity }) { + async run(msg, { uType, uActivity }) { let bType = this.client.user?.presence.activities[0].type; let bActivity = this.client.user?.presence.activities[0].name; @@ -82,7 +82,18 @@ module.exports = class StatusBot extends Command { type: 'WATCHING' }); } else { - return msg.reply(`That was not an option. ${emoji.random()}`) + if (bType == 'WATCHING') { + var bTypeSoften = 'Watching' + } else if (bType == 'STREAMING') { + var bTypeSoften = 'Watching' + } else if (bType == 'PLAYING') { + var bTypeSoften = 'Playing' + } else if (bType == 'LISTENING') { + var bTypeSoften = 'Listening' + } else { + var bTypeSoften = 'Unresolved' + } + return msg.reply(`My current status is \`${bTypeSoften} ${bActivity}\`. ${emoji.random()}`) } } };
\ No newline at end of file diff --git a/src/config.json b/src/config.json index 9cdd651..654dbac 100644 --- a/src/config.json +++ b/src/config.json @@ -1,7 +1,7 @@ { "secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A", "yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8", - "version":"1.10.0", + "version":"1.10.1", "fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a", "maxMultipler": 100, "minMultipler": 1.01 |