codea.live
Search…
Customize
A full guide to customizing 2PG.
2PG can be customized, for your bot's needs. This guide goes in depth to show you how to customize your multipurpose Discord bot.

Bot on Discord

How do I add commands?

How do I change the default prefix?

By default, the 2PG prefix is '.'. This can be changed in the file below. Simply change the prefix = '.'; line.
Bot/guild.ts at stable · twopg/Bot
GitHub
2PG ping command

How do I customize the bot status?

In the file linked below, change the activity accordingly - await bot.user?.setActivity('Your custom status');
https://github.com/twopg/Bot/blob/stable/src/services/handlers/ready.handler.ts
github.com
ready-handler.ts
Example of 2PG's status
Last modified 9mo ago