The bot is added to the stratis community discord. You can check it out there.
Or you can add stratis tipbot to your server.
Don't forget to add Manage Messages
permission for the bot.
A Stratis node (you can get latest release here) with RPC turned on needs to be running.
stratis-qt.exe -rpcuser=<username> -rpcpassword=<password> -rpcport=<port> -server=1
You will also need .NET Core SDK installed.
Clone the repository, open powershell in the repo folder and run dotnet publish
from it. That will compile the project and produce ..\TipBot\bin\Debug\netcoreapp2.1\publish
folder with TipBot.dll
and other files in it.
Now you can run the bot using powershell or cmd:
dotnet exec TipBot.dll -daemonUrl=http://127.0.0.1:23521/ -rpcUsername=USRNAME -rpcPassword=RPCPASS -walletPassword=WALLETPASS -token=BOTTOKEN
Bot configuration parameters:
daemonUrl - URL of RPC server. Usually http://127.0.0.1:<RPC port>/
rpcUsername - rpc user name
rpcPassword - rpc password
walletPassword - wallet's password. Dont specify if wallet is not encrypted
token - discord bot token
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!
- 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.
When you see the bot in the online status on your discord server, you are ready to test it.
Type: @tipbot help