mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
+ vs code settings for debug
+ actual readme with quickstart instructions
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -106,4 +106,5 @@ venv.bak/
|
||||
.mypy_cache/
|
||||
|
||||
.idea
|
||||
discord.log
|
||||
discord.log
|
||||
/.vscode/settings.json
|
||||
|
||||
22
.vscode/launch.json
vendored
Normal file
22
.vscode/launch.json
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
18
README.md
18
README.md
@@ -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`
|
||||
Reference in New Issue
Block a user