https://github.com/skythecodemaster/cc-discordbot
CC wrapper around Discord's bot api.
https://github.com/skythecodemaster/cc-discordbot
Last synced: about 2 months ago
JSON representation
CC wrapper around Discord's bot api.
- Host: GitHub
- URL: https://github.com/skythecodemaster/cc-discordbot
- Owner: SkyTheCodeMaster
- Created: 2021-04-04T01:38:49.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-08T14:22:12.000Z (about 4 years ago)
- Last Synced: 2025-02-05T18:06:48.494Z (4 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cc-discordbot
Usage of a Python script with `discord.py`, and websockets to make a CC wrapper around discord's bot api.Note: This can only send back 1 message per message received. This might change in the future.
# Installation
Install Python and the Python script (Tested on version 3.9.0)
On Linux, Python is typically pre installed.Retrieve the python script,
`wget https://raw.githubusercontent.com/SkyTheCodeMaster/cc-discordbot/main/bot.py`In the same directory as the python script, create `token.txt` with the bot token in it.
On Computercraft, retrieve the CC script.
`wget https://raw.githubusercontent.com/SkyTheCodeMaster/cc-discordbot/main/bot.lua`Now you need to edit `bot.lua` to suit your needs of a discord bot.
# Usage
Open `bot.py`, and *then* open `bot.lua`. You can restart `bot.lua` without restarting `bot.py`, but do not open 2 instances of `bot.lua`.