diff --git a/README.md b/README.md index e5fb195..b9ea465 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ Check by from time to time to see what has changed. :) # Installation 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 . 3. Run the bot by using your venv interpreter. @@ -18,4 +21,4 @@ If you find a bug or have a feature request, visit https://code.nextgamers.eu/fr If you don't want to load the example extensions, just move them to some other ending (not .py). # Note -A better description and HowTo will follow someday, maybe in the wiki. :) \ No newline at end of file +A better description and HowTo will follow someday, maybe in the wiki. :) diff --git a/pybot-f.py b/pybot-f.py index 91c20e2..107ffd2 100644 --- a/pybot-f.py +++ b/pybot-f.py @@ -8,6 +8,7 @@ import typing from discord.ext import commands import logging + # Logging loghandler = logging.FileHandler(filename='bot.log', encoding='utf-8', mode='w') discord.utils.setup_logging(handler=loghandler) @@ -33,6 +34,7 @@ config.read('bot.ini') bottoken = config['General']['bottoken'] + # Setting up commands.Bot bot = commands.Bot(command_prefix='.', description=description, intents=intents)