Planning a first bot for a club server
A club, a class or a group of friends on a chat server can have a bot of its own. A page of planning comes before any code. The examples here come from Discord, as one platform among several. Its developer documentation is open for anyone to read.
Give it one task
Discord's documentation describes bots as "automated apps, commands, and integrations that run inside Discord servers". Its guide for beginners builds a bot that lets two members play rock-paper-scissors. A first club bot can be as small as that. It might post the date of the next meeting, or pick whose turn it is to bring the biscuits.
Write down the commands
Members talk to a bot through commands. Discord describes a slash command as "a text-based command that shows up when a user types /". Each one has a name and a description. The documentation says these "help users find your command among many others".
A command name on Discord is between 1 and 32 characters long, and its letters are lower case. Write each command on the plan with one line saying what it does.
List what it needs permission for
Someone has to agree before a bot can act on a server. In Discord's words, "Apps need approval from installing users to perform actions in Discord". The bot's builder chooses which permissions it asks for. In the beginner guide the author picks one, Send Messages.
Discord marks some access as privileged, which it explains as access to "data that may be considered sensitive (like the contents of messages)". Put each permission on the plan beside the command that uses it.
Keep the token to yourself
A bot signs in with a token. Discord says a token is used "to authorize API requests and carry your app's permissions", which makes it highly sensitive. Its advice is "Make sure to never share your token or check it into any kind of version control." It suggests keeping the token somewhere safe, such as a password manager.
Try it somewhere private first
Discord's documentation calls a server a guild. It advises builders to test a bot "in a server that isn't actively used by others". A builder without a server of their own can create one for testing.
Commands can be set up for one server or for every server the bot joins. Discord says commands made for a single server "update instantly", and it recommends them for quick testing. Ask two or three friends into the test server and watch what they type.
What it keeps about members
A bot can store things about the people who use it, such as scores or birthdays. The data protection regulator is the Information Commission (which took over from the ICO on 30 September 2026). Its guidance for organisations says "You should also periodically review the data you hold, and erase or anonymise it when you no longer need it." A banner on the page, seen on 29 November 2026, says the guidance is under review. A club bot can follow the same habit and note on the plan what it stores and when it deletes it.
Some groups have members under 18. The regulator's Children's code sets "fifteen standards that providers of online services that are likely to be accessed by children (such as apps, online games, and web and social media sites) must conform with". The code and the regulator's guidance say which services it covers.
The plan on one page
- The one task the bot does.
- Each command, with a line on what it does.
- The permissions it asks for, and why.
- What it stores about members, and when that is deleted.
- Where it is tested, and who tries it first.
Useful links
- Discord Developer Platform documentation (Discord)
- Building your first Discord bot (Discord)
- Application commands (Discord)
- Permissions (Discord)
- Children's code guidance and resources (Information Commission)
- Storage limitation (Information Commission, under review)
- Information Commission succeeds the ICO as UK's data protection regulator (GOV.UK)