Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electrium Discord Bot

Discord bot for the Electrium Mobility team.

Prerequisites

1. Create your bot

Each contributor should use their own bot and their own test server, so you don't collide while developing.

  1. Go to https://discord.com/developers/applicationsNew Application.
  2. BotReset Token → copy the token (keep it secret — it goes in .env).
  3. Bot → enable Server Members IntentSave Changes.
  4. OAuth2 → URL Generator → scopes bot + applications.commands; bot permissions Manage Roles, Send Messages, View Channels. Open the generated URL and add the bot to your test server.

2. Install

git clone https://github.com/Electrium-Mobility/electrium-discord-bot.git
cd electrium-discord-bot
python -m venv .venv

# activate the venv:
.\.venv\Scripts\activate      # Windows (PowerShell)
# source .venv/bin/activate   # macOS / Linux

pip install -r requirements.txt

3. Configure

Copy .env.example to .env and fill in:

  • DISCORD_TOKEN — your bot token from step 1
  • GUILD_ID — your test server's ID (enable Developer Mode in Discord → right-click the server icon → Copy Server ID)

4. Run

python bot.py

Type /ping in your test server — the bot replies Pong.


Opening the folder in VS Code? It's preconfigured to use .venv (via .vscode/settings.json). If imports show as unresolved, run Ctrl+Shift+P → Python: Select Interpreter and pick the .venv one.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages