- Added initial instructions to README
- Changed few other things.
This commit is contained in:
parent
01850ee4e2
commit
1397d84545
2 changed files with 6 additions and 1 deletions
|
@ -9,6 +9,9 @@ Check by from time to time to see what has changed. :)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
1. Check that you create a venv and then install requirements.txt in there.
|
1. Check that you create a venv and then install requirements.txt in there.
|
||||||
|
- python3 -m venv venv
|
||||||
|
- Linux: source venv/bin/activate
|
||||||
|
- pip install -r requirements.txt
|
||||||
2. Then edit the bot.ini.example and move it to bot.ini .
|
2. Then edit the bot.ini.example and move it to bot.ini .
|
||||||
3. Run the bot by using your venv interpreter.
|
3. Run the bot by using your venv interpreter.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ import typing
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
loghandler = logging.FileHandler(filename='bot.log', encoding='utf-8', mode='w')
|
loghandler = logging.FileHandler(filename='bot.log', encoding='utf-8', mode='w')
|
||||||
discord.utils.setup_logging(handler=loghandler)
|
discord.utils.setup_logging(handler=loghandler)
|
||||||
|
@ -33,6 +34,7 @@ config.read('bot.ini')
|
||||||
|
|
||||||
bottoken = config['General']['bottoken']
|
bottoken = config['General']['bottoken']
|
||||||
|
|
||||||
|
|
||||||
# Setting up commands.Bot
|
# Setting up commands.Bot
|
||||||
bot = commands.Bot(command_prefix='.', description=description, intents=intents)
|
bot = commands.Bot(command_prefix='.', description=description, intents=intents)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue