You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Cryptonote network stats discord bot that displays a variety of network information and statistics on demand
3
+
# Version 1.0
4
+
#
5
+
# DEPENDENCIES
6
+
# sudo apt-get install python3
7
+
# sudo apt-get -y install python3-pip
8
+
# python3 -m pip install discord.py==0.16.12
9
+
#
10
+
# HOW TO USE
11
+
# Go to https://discordapp.com/developers/applications/
12
+
# Create an application
13
+
# Go to 'Bot' section of discordapp.com/developers portal from the menu and add new bot
14
+
# Get a bot token and add it to TOKEN value inside networkbot.py file
15
+
# Go to 'Auth' section of discordapp.com/developers portal and mark the checkbox 'bot' to generate an invite link for your new bot.
16
+
# Visit that generated link to invite your bot to your Discord server.
17
+
#
18
+
# RUN THE BOT (run from command line)
19
+
# python3 networkbot.py
20
+
21
+
importrandom
22
+
importasyncio
23
+
importaiohttp
24
+
importjson
25
+
fromdiscord.ext.commandsimportBot
26
+
27
+
# bot description
28
+
# bot description displayed in help section
29
+
description='''Network bot displays a variety of information and statistics on almost any cryptonote network. To use the commands type them with the prefix of ampersand (&). You can find the commands and their use below. Add (&) in front of a command (EXAMPLE: &height)'''
30
+
31
+
# bot prefix (&)
32
+
# prefix used to call your bot's commands
33
+
BOT_PREFIX= ("&")
34
+
35
+
# secret bot token
36
+
# never give your secret bot token to anyone
37
+
# get it at discordapp.com/developers/applications/me
38
+
TOKEN="YOUR_SUPER_SECRET_BOT_TOKEN_GOES_HERE"
39
+
40
+
# daemon address
41
+
# address used to communicate with the network (127.0.0.1 for localhost)
42
+
HOST="YOUR_DAEMON_ADDRESS_GOES_HERE"
43
+
44
+
# daemon RPC port
45
+
# port used to communicate with the network (your network's RPC port)
0 commit comments