summaryrefslogtreecommitdiff
path: root/src/commands/bot/status.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/bot/status.ts')
-rw-r--r--src/commands/bot/status.ts99
1 files changed, 0 insertions, 99 deletions
diff --git a/src/commands/bot/status.ts b/src/commands/bot/status.ts
deleted file mode 100644
index dbb5080..0000000
--- a/src/commands/bot/status.ts
+++ /dev/null
@@ -1,99 +0,0 @@
-import { Command } from 'discord.js-commando';
-import emoji from 'emoji-random'
-import config from '../../config.json'
-
-module.exports = class StatusBot extends Command {
- constructor(client) {
- super(client, {
- name: 'status',
- aliases: ['botstatus', 'bot-status'],
- group: 'bot',
- memberName: 'status',
- description: 'Allows you to change uwufier\'s status.',
- args: [
- {
- key: 'uType',
- prompt: 'Would you like to change the status type or status message?',
- type: 'string',
- default: ''
- },
- {
- key: 'uActivity',
- prompt: 'What would you like to set the status message to?',
- type: 'string',
- default: ''
- }
- ],
- examples: [
- 'uwu!botstatus type watching',
- 'uwu!status t w',
- 'uwu!status message youtube',
- 'uwu!bs m lol'
- ],
- ownerOnly: true,
- guarded: true
- });
- }
- async run(msg, { uType, uActivity }) {
- let bType = this.client.user?.presence.activities[0].type;
- let bActivity = this.client.user?.presence.activities[0].name;
-
- function uActivityCheck() {
- if (uActivity == 'playing' || uActivity == 'p') {
- return true
- } else if (uActivity == 'streaming' || uActivity == 's') {
- return true
- } else if (uActivity == 'listening' || uActivity == 'l') {
- return true
- } else if (uActivity == 'watching' || uActivity == 'w') {
- return true
- } else {
- return false
- }
- }
-
- if (uType == 'type' || uType == 't') {
- if (uActivity == 'reset' || uActivity == 'r') {
- this.client.user?.setActivity(this.client.user.presence.activities[0].name, {
- type: 'WATCHING'
- });
- } else {
- if (uActivityCheck()) {
- this.client.user?.setActivity(this.client.user.presence.activities[0].name, {
- type: uActivity
- });
- // TODO: fix this not settings the type
- } else {
- return msg.reply(`That is not a valid status type. ${emoji.random()}`)
- }
- }
- } else if (uType == 'message' || uType == 'msg' || uType == 'm') {
- if (uActivity == 'reset' || uActivity == 'r') {
- this.client.user?.setActivity('uwu!help | v' + config['version'], {
- type: bType
- });
- } else {
- this.client.user?.setActivity(uActivity, {
- type: bType
- });
- }
- } else if (uType == 'reset' || uType == 'r') {
- this.client.user?.setActivity('uwu!help | v' + config['version'], {
- type: 'WATCHING'
- });
- } else {
- 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