A Stratis node with RPC turned on also needs to be running.
See http://stratisdevelopmentfoundation.com/install_qt/ for more information about setting this up.
Sample stratis.conf, to be placed in qt node roaming folder:
# RPC Settings
# Activate RPC Server (default: 0)
server = 1
# Where the RPC Server connects (default: 127.0.0.1 and ::1)
rpcconnect = 127.0.0.1
# Ip address allowed to connect to RPC (default all: 0.0.0.0 and ::)
rpcallowedip = 127.0.0.1
rpcuser = user
rpcpassword = 4815162342
rpcport=23521
Make sure ports, passwords, etc match the ones found in Settings.cs
You must also create a discord bot and put the token in Settings.cs
Before you can begin writing your bot, it is necessary to create a bot account on Discord.
- Visit the Discord Applications Portal.
- Create a New Application.
- Give the application a name (this will be the bot's initial username).
- Create the Application.
- In the application review page, click Create a Bot User.
- Confirm the popup.
- If this bot will be public, check "Public Bot." Do not tick any other options!
Bots cannot use invite links, they must be explicitly invited through the OAuth2 flow.
-
Open your bot's application on the Discord Applications Portal.
-
Retrieve the app's Client ID.
-
Create an OAuth2 authorization URL
https://discordapp.com/oauth2/authorize?client_id=<CLIENT ID>&scope=bot
-
Open the authorization URL in your browser.
-
Select a server.
-
Click on authorize.
[!NOTE] Only servers where you have the
MANAGE_SERVER
permission will be present in this list.
When you see the bot in the online status on your discord server, you are ready to test it. if the bots name is "BOT", then you would enter:
@bot about