SideProjectGuys / invite-manager-bot

A discord bot that tracks invites and much more
https://docs.invitemanager.co/
GNU General Public License v3.0
166 stars 136 forks source link

How can I disable the bot's Discord custom status? #178

Closed XPMai closed 3 years ago

XPMai commented 3 years ago

I want it to undo/remove the custom status.

Current custom status: Playing docs.invitemanager.co!

chaun14 commented 3 years ago

Remove it from the source code in src/client.ts

XPMai commented 3 years ago

Remove it from the source code in src/client.ts

Which lines should I remove? I scared breaking the code.

And just asking, is it a setting that can be disabled?

SyntaxDragon commented 3 years ago

https://github.com/SideProjectGuys/invite-manager-bot/blob/6fea1726e1d2485ba9809017d35411ad817f3c71/src/client.ts#L607-L630 I believe you could just comment these out.

ghost commented 3 years ago

Commenting out the public async setactivity makes npm start fail. Instead just make a backup of current client.ts and delete the following section image If you want to customize it instead of deleting you can replace the "playing" with watching, listening or streaming and the "docs.invitemanager.co!" that follows those lines with whatever you want. This method works, i tested it on a alternate token.

SyntaxDragon commented 3 years ago

ah my bad I forget it would do that, but yeah you can always either make it a dummy function or customise it to look how you want, I just leave it as it is since I'm not hosting the docs.

XPMai commented 3 years ago

https://github.com/SideProjectGuys/invite-manager-bot/blob/6fea1726e1d2485ba9809017d35411ad817f3c71/src/client.ts#L607-L630

I believe you could just comment these out.

src/client.ts:369:14 - error TS2339: Property 'setActivity' does not exist on type 'IMClient'.

369     await this.setActivity();
                   ~~~~~~~~~~~

src/client.ts:370:50 - error TS2339: Property 'setActivity' does not exist on type 'IMClient'.

370     this.activityInterval = setInterval(() => this.setActivity(), 1 * 60 * 1000);
                                                       ~~~~~~~~~~~

src/framework/commands/config/botConfig.ts:132:21 - error TS2339: Property 'setActivity' does not exist on type 'IMClient'.

132     await this.client.setActivity();
                          ~~~~~~~~~~~
I get this error:

Found 3 errors.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! discord-invite-manager@9.8.0 build: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the discord-invite-manager@9.8.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2020-09-21T10_29_16_992Z-debug.log
XPMai commented 3 years ago

Gahh, nvm. It's the !botConfig command

Reference: https://github.com/SideProjectGuys/invite-manager-bot/blob/18448a77a33936ba2424d24ac8bc575a0bad15e8/docs/cs/reference/commands.md#botConfig