Customization
Member counting
Qbot allows you to periodically post your group member count to a channel, and even highlight when a milestone of your choice is hit!
If you need help at any point in this documentation, please don't hesitate to join our Discord server.
Enabling Discord Developer Mode
Since Qbot requires a channel ID to configure member counting, you will need Developer Mode enabled. If you haven't already done this:
- Go to Discord User Settings
- Go to Advanced
- Enable Developer Mode
This setting allows you to copy user, message, and role IDs via context menus (right clicking).
Setting up the member count
Enabling the feature
If you just logged in to your VPS, run cd qbot
to enter Qbot's directory. Then, run nano src/config.ts
to open the configuration in a text editor. Read this for a refresher on how to use this editor.
Use Ctrl+W
to search for the first usage of memberCount
, which should look like this:
memberCount: {
enabled: false,
channelId: '',
milestone: 100,
onlyMilestones: false,
},
Navigate to the second line, with the enabled
option, and replace the false
to true
without adding quotes, so it looks like:
enabled: true,
Choosing the channel
Decide which channel Qbot should post member count notifications to. Right click it, and select Copy ID.
Now, under memberCount
, paste that ID in the quotes next to channelId
, like so:
channelId: 'id goes here',
Setting a milestone interval
Milestone occur when the member count passes a multiple of your set milestone interval. To change that interval, replace 100
with the new value in your config, under memberCount
. Don't add quotes, for example:
milestone: 2000,
Choosing to only post milestones
There is also the option to only post when a milestone happens, instead of posting an update every minute if it changes.
To do this, change the false
to true
after onlyMilestones
in your memberCount
configuration, like so:
onlyMilestones: true,
Save your changes
Press Ctrl+X
, then y
, then enter to save your changes in nano. To restart Qbot, run this command:
pm2 restart 0