Skip to content

hakergeniusz/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

179 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Discord Bot


👋 Introduction

Feature-rich Discord bot made by hakergeniusz with the goal of learning Discord.py. It is licenced with GNU Affero General Public License version 3.


⚙️ Prerequisites

You must have following installed on your computer for this bot to work correctly:

  • A Discord bot token from Discord Developer Program.
  • Python 3.12+
  • Git for cloning the repository.
  • FFmpeg for /play command to work correctly.

💻 Preparation

NOTE: These commands are for Linux. If you use Windows, please use Windows Subsystem for Linux (WSL).

  1. Download all files from this repository with git clone -b main https://github.com/hakergeniusz/discord-bot.git.

NOTE: If you want latest branch with new features (also broken bot), use git clone -b latest https://github.com/hakergeniusz/discord-bot.git.

  1. Open the folder with cd discord-bot.
  2. Create a Python venv with python3 -m venv .venv.
  3. Activate venv with source .venv/bin/activate.
  4. Install all required libraries with pip install -r requirements.txt.
  5. Create and fill up .env file.

Note on .env values:

DISCORD_BOT_TOKEN=YOUR_BOT_TOKEN
DISCORD_OWNER_ID=YOUR_DISCORD_ID
GEMINI_API_KEY=GOOGLE_AI_STUDIO_KEY
POWEROFF_COMMAND=True/False
  • DISCORD_BOT_TOKEN: Your Discord bot token from Discord Developer Program.
  • DISCORD_OWNER_ID: Your Discord user ID or other account that you want it to have all permissions.
  • GEMINI_API_KEY: Your Google AI Studio API key (obtainable for free on aistudio.google.com).
  • POWEROFF_COMMAND: True if you want /turn_off_pc to work, anything else if you don't want it to work. If value is not provided, it is default set to False.

🚀 Running the bot

With your .venv active, execute the following command in src folder:

python3 -m main

🌟 Credits

All credits for are in CREDITS file.


📜 License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.

About

Yet Another Shitly Made Discord Bot

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages