commit e4c7f797aacae3c92255ccb98bb52b38c838089b
parent 835be21e7a2a973cc82baad14e82d99ab2fae395
Author: ashermorgan <59518073+ashermorgan@users.noreply.github.com>
Date: Sun, 27 Jun 2021 11:00:48 -0700
Fix bug in run.py
Diffstat:
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
@@ -1,5 +1,5 @@
# countdown-bot
-A Discord bot to facilitate countdowns.
+A Discord bot to facilitate countdowns
@@ -9,9 +9,9 @@ A Discord bot to facilitate countdowns.
pip install -r requirements.txt
```
-2. Go to the [Discord Developer Portal](https://discord.com/developers/) and create an application and a bot.
+2. Go to the [Discord Developer Portal](https://discord.com/developers/) and create an application and a bot
-3. Add the bot to your server.
+3. Add the bot to your server
```
https://discordapp.com/oauth2/authorize?client_id=BOT_ID_HERE&scope=bot&permissions=232512
```
@@ -21,9 +21,9 @@ A Discord bot to facilitate countdowns.
python setup.py
```
-5. Open `settings.json` (which was generated by `setup.py`) and add your bot's token.
+5. Open `settings.json` (which was generated by `setup.py`) and add your bot's token
```json
- {"token": "YOUR_TOKEN_HERE", "prefixes": ["c."]}
+ {"token": "YOUR_TOKEN_HERE", "prefixes": ["c."], "database": "sqlite:///data.sqlite3"}
```
6. Run the bot
@@ -31,4 +31,4 @@ A Discord bot to facilitate countdowns.
python run.py
```
-7. Run `c.help` to get a list of commands and a description of the bot's behavior.
+7. Run `c.help` to get a list of commands and a description of the bot's behavior
diff --git a/run.py b/run.py
@@ -9,7 +9,7 @@ from src import CountdownBot
# Load settings
settings = {}
-with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), "settings.json"), "a+") as f:
+with open(os.path.join(os.path.dirname(__file__), "settings.json"), "a+") as f:
f.seek(0)
settings = json.load(f)