https://github.com/kronopt/discordbot
A Discord Bot
https://github.com/kronopt/discordbot
discordbot python python-3-10
Last synced: about 1 year ago
JSON representation
A Discord Bot
- Host: GitHub
- URL: https://github.com/kronopt/discordbot
- Owner: Kronopt
- License: gpl-3.0
- Created: 2018-01-29T02:17:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-23T21:39:46.000Z (over 3 years ago)
- Last Synced: 2025-02-01T22:14:59.594Z (about 1 year ago)
- Topics: discordbot, python, python-3-10
- Language: Python
- Homepage:
- Size: 277 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DiscordBot
[](https://github.com/Kronopt/DiscordBot/actions?query=workflow%3ACI)
[](https://github.com/psf/black)
[](https://github.com/Kronopt/DiscordBot/blob/master/LICENSE)
[](https://snyk.io/test/github/Kronopt/DiscordBot?targetFile=requirements.txt)
A Discord Bot
#### Install Dependencies
* Python 3.10
* `pip install -r requirements.txt`
* `pyppeteer-install` (command becomes available after installing python dependencies)
#### How to run
* Download this repo
* Install dependencies
* Create a `bot` [here](https://discordapp.com/developers/applications/me) and then create an `app bot user`
(on the same page)
* Use the `BOT_TOKEN` provided there
* Run `python discord_bot.py ` on the root of the repo
* Add the bot to a server using discord
note: on linux you might need to pass an extra parameter to discord_bot.py: `-gaming_cog=--no-sandbox`
## Commands
### Funny
| command | descripion |
| ------- | ---------- |
| `/8ball ` | "Predicts" the outcome of a question |
| `/dick` | Reveals user's dick size |
| `/poop [int n]` | Sends n poops |
| `/joke [bool tts]` | Tells a random (bad) joke |
### Gaming
| command | descripion |
| ------- | ---------- |
| `/awesomenaut rank ` | Displays rank information of an Awesomenaut's player |
| `/gamedeal ` | Displays game pricing info |
### General
| command | descripion |
| ------- | ---------- |
| `/hi` | Greets user |
| `/dice [str die]` | Rolls a die |
| `/poll [str options]` | Starts a poll |
### Info
| command | descripion |
| ------- | ---------- |
| `/info` | Shows author, github page and framework |
| `/system` | Shows bot host system information |
### XKCD Comics
| command | descripion |
| ------- | ---------- |
| `/xkcd random` | Shows a random xkcd comic |
| `/xkcd latest` | Shows the latest xkcd comic |
| `/xkcd id ` | Shows the selected xkcd comic |