+ vs code settings for debug

+ actual readme with quickstart instructions
This commit is contained in:
13xforever
2018-02-16 20:58:05 +05:00
parent e59cb31467
commit 9ec8a55d0a
3 changed files with 42 additions and 1 deletions

3
.gitignore vendored
View File

@@ -106,4 +106,5 @@ venv.bak/
.mypy_cache/
.idea
discord.log
discord.log
/.vscode/settings.json

22
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,22 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"args": [
"put_bot_user_token_here"
],
"cwd": "${workspaceFolder}",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": [
"RedirectOutput"
]
}
]
}

View File

@@ -1 +1,19 @@
# discord-bot
Dependencies:
* python3.5 or newer
* pip for python3
* `$ python3 -m pip install -U discord.py`
* pyparsing for python3 (distro package or through pip)
* requests for python3 (distro package or through pip)
Optional stuff for private testing:
* [create an app](https://discordapp.com/developers/applications/me)
* add a user bot to this new app (look at the bottom of the app page)
* notice the Bot User Token
* [add your new bot to your private server](https://discordapp.com/oauth2/authorize?client_id=BOTCLIENTID&scope=bot)
* change channel IDs in `bot.py` for your test server channels
How to run:
* `$ python3 bot.py bot_user_token`