Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It's primary features are:
- Querying Wolfram|Alpha
- A Turing complete calculator

The bot is currently developed for python `3.6.4`.
The bot is currently developed for python `3.8`.

## Links

Expand All @@ -20,8 +20,9 @@ The bot is currently developed for python `3.6.4`.
git clone https://github.com/DXsmiley/mathbot.git
cd mathbot
cp mathbot/parameters_default.json mathbot/parameters.json
pipenv --python 3.6
pipenv install --skip-lock
python3 -m venv venv
source venv/bin/activate
pip install -Ur requirements.txt
```

Then open parameters.json and change `tokens` to the token of the bot used for development. Optionally change the other parameters.
Expand All @@ -36,8 +37,9 @@ Then navigate into the `mathbot` directory and run the bot with `python entrypoi
git clone https://github.com/DXsmiley/mathbot.git
cd mathbot
cp mathbot/parameters_default.json mathbot/parameters.json
pipenv --python 3.6
pipenv install --dev --skip-lock
python3 -m venv venv
source venv/bin/activate
pip install -Ur requirements.txt
```

Then open parameters.json and change `tokens` to the token of the bot. Change `release` to `development`. Optionally change the other parameters.
Expand Down
4 changes: 3 additions & 1 deletion mathbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ def __init__(self, parameters):
shard_count = parameters.get('shards total')
shard_ids = parameters.get('shards mine')
print(f'Starting bot shards {shard_ids} ({shard_count} total)')
intents = discord.Intents.default()
intents.message_content = True
super().__init__(
command_prefix=_determine_prefix,
intents=discord.Intents.default()
intents=intents
)
self.parameters = parameters
self.release = parameters.get('release')
Expand Down