Bot & API Setup
Installation
-
Clone this repository into the directory you want it in.
Via Git:
Via Get(Development Version):git clone https://github.com/Redon-Tech/Roblox-Purchasing-Hub
git clone -b development https://github.com/Redon-Tech/Roblox-Purchasing-Hub
-
Install requirements
If that isnt working docd Roblox-Purchasing-Hub pip3 install -r BOT/requirements.txt
pip install -r BOT/requirements.txt
-
In BOT/lib/bot clone the example.config.json and rename it to config.json
-
Edit config.json and update it with all the proper information (Guide on configuration below)
-
In BOT/lib/cogs/website.py at the very bottom change
To (Replace 5000 with your open port)app.run_task("0.0.0.0")
app.run_task("0.0.0.0", port=5000)
-
Run the bot by executing BOT/launcher.py
If that isnt working dopython3 BOT/launcher.py
python BOT/launcher.py
-
Test that the bot is online by using
{prefix}help
(Default Prefix: ".")
Configuration
{
"token": "",
"prefix": ".",
"ownerids": [
1234567890
],
"guild": 1234567890,
"standardoutput": 123467890,
"usepages": true,
"mongodb": {
"url": "mongodburl"
},
"roblox": {
"cookie": "fullrobloxcookie"
},
"apikey": "generatearandomstringforthis"
}
- Token [String]: The token of your bot found at Discord Developer Portal.
- Prefix [String]: The prefix of the bot. [Default: "."]
- OwnerIds [List of Numbers]: List of all the bot owners, used for owner commands.
- Guild: [Number]: The primary guild id of the bot. Also the guild that the standard output channel is in.
- StandardOutpu [Number]: The output channel id for bot logs.
- UsePages [Bool]: N/A
- MongoDB [Dictionary]: All information for MongoDB
- MongoDB.URL [String]: The connection URL to your MongoDB server.
- Roblox [Dictionary]: All information for Roblox
- Roblox.Cookie [String]: The full Roblox cookie of your Roblox bot.
- ApiKey [String]: Should be a random string used for communication between API and database.