https://github.com/nafiz1001/cowsay-bot
A cowsay discord bot written in python
https://github.com/nafiz1001/cowsay-bot
bot cowsay discord discord-bot python slash-commands
Last synced: 4 months ago
JSON representation
A cowsay discord bot written in python
- Host: GitHub
- URL: https://github.com/nafiz1001/cowsay-bot
- Owner: nafiz1001
- License: gpl-3.0
- Created: 2021-03-28T20:45:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-11T02:03:25.000Z (about 2 years ago)
- Last Synced: 2024-06-12T06:43:20.230Z (about 2 years ago)
- Topics: bot, cowsay, discord, discord-bot, python, slash-commands
- Language: Python
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cowsay Bot

A cowsay discord bot written in python
## Usage
### Preparation
1. Create a Discord bot. You can follow tutorials such as [this](https://www.freecodecamp.org/news/create-a-discord-bot-with-python/). You need the token of the bot for later steps.
1. Obtain the guild ID of all the servers your bot will join.
1. Follow this post to invite your bot to a server: https://stackoverflow.com/a/37743722
### Venv Usage
1. Create and activate `venv`: `python3 -m venv .venv && . .venv/bin/activate`
1. Install dependencies: `pip install -r requirements.txt`
1. Define environment variables: `TOKEN="your token"` and `GUILD_IDS="guild IDs separated by comma"`.
You can use a `.env` file or pass it directly to cowsay-bot.py
1. Star the bot: `./cowsay-bot.py`
### Docker Usage
1. `docker build -t "cowsay-bot" .`
1. `docker run -e "TOKEN=your token" -e "GUILD_IDS=guild IDs separated by comma" --name "cowsay-bot" cowsay-bot`