🏆 Manage user invites through a Discord bot for events / giveaways / referrals.
- Clone/Download the repository
- To clone it and get the updates you can definitely use the command
git clone
- To clone it and get the updates you can definitely use the command
- Create a discord bot here
- Get your bot token
- Invite your bot on servers using the following invite:
https://discord.com/oauth2/authorize?&client_id=YOUR_APPLICATION_ID_HERE&scope=bot+applications.commands&permissions=PERMISSIONS (
Replace
YOUR_APPLICATION_ID_HERE
with the application ID and replacePERMISSIONS
with the required permissions your bot needs that it can be get at the bottom of a this page https://discord.com/developers/applications/YOUR_APPLICATION_ID_HERE/bot)
To set up the bot I made it as simple as possible. I now created a config.json file where you can put the needed things to edit.
Here is an explanation of what everything is:
Variable | What it is |
---|---|
YOUR_BOT_PREFIX_HERE | The prefix you want to use for normal commands |
YOUR_BOT_TOKEN_HERE | The token of your bot |
YOUR_BOT_PERMISSIONS_HERE | The permissions integer your bot needs when it gets invited |
YOUR_APPLICATION_ID_HERE | The application ID of your bot |
OWNERS | The user ID of all the bot owners |
To start the bot you simply need to launch, either your terminal (Linux, Mac & Windows), or your Command Prompt ( Windows) .
Before running the bot you will need to install all the requirements with this command:
pip install -r requirements.txt
If you have multiple versions of python installed (2.x and 3.x) then you will need to use the following command:
python3 bot.py
or eventually
python3.x bot.py
Replace x
with the version of Python you have installed.
If you have just installed python today, then you just need to use the following command:
python bot.py
- Fork it (https://github.com/0xAzureDev/invites-manager-discord-bot/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'feat: some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Distributed under the MIT
License. See LICENSE
for more information.
LicenseContributing