Skip to content

The official TheHolyRogerCoin IRC tipbot. Resides in #TheHolyRoger at freenode.

License

Notifications You must be signed in to change notification settings

TheHolyRogerCoin/Rogerer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 30, 2018
a2956d9 · Nov 30, 2018

History

97 Commits
Jun 25, 2014
Nov 30, 2018
Sep 13, 2018
Sep 13, 2018
Nov 30, 2018
Nov 30, 2018
Nov 30, 2018
Nov 30, 2018
Nov 30, 2018
Nov 30, 2018
Jun 7, 2014
Nov 30, 2018
Nov 30, 2018
Nov 30, 2018
Nov 30, 2018
Sep 13, 2018
Nov 30, 2018
Sep 13, 2018
Nov 30, 2018
Sep 13, 2018

Repository files navigation

Rogerer

IRC tip bot in python.

Requirements:

  • RPC library - From here or pypi.
  • TheHolyRogerd - From here, you need the theholyrogerd binary.
  • Postgres - From here, python binding from here
  • Python - Obviously.

Setup:

  • Create a file in the same folder as the code named Config.py, and put the following into it:
config = {
	"host": "ircserverhostna.me",
	"port": 6667,
# optional:
#	"ipv6": True,
#	"bindhost": "10.0.0.1",
	"user": "identname",
	"rname": "Real name",
	"confirmations": 4,
	"account": "nickservaccountname",
	"password": "nickservpassword",
	"admins": {
		"unaffiliated/johndoe": True # hosts/cloaks of admins
	},
	"prefix": "!", # the trigger character
# optional:
#	"ssl": {
#		"certs": "/etc/ssl/certs/ca-certificates.crt"
#	},
	"instances": {
		"nick1": ["#channel1", "#channel2"],
		"nick2": ["#channel3"]
	},
# optional:
#	"ignore": {
#		"cost": 10, # score added for every command
#		"limit": 80, # max allowed score
#		"timeout": 240 # ignore length
#	},
	"logfile": "path/to/log",
# optional:
#	"irclog": ("nick1", "#logchannel"),
	"database": "name of pgsql database"
}
  • Add the following to the theholyroger.conf:
rpcthreads=100
daemon=1
irc=0
dnsseed=1
paytxfee=1.0
blocknotify=/usr/bin/touch blocknotify/blocknotify
  • Create a postgres database with the following schema:
CREATE TABLE accounts (account character varying(16) NOT NULL, balance bigint DEFAULT 0, registered bigint, last_seen bigint, last_check bigint, CONSTRAINT balance CHECK ((balance >= 0)));
CREATE TABLE address_account (address character varying(90) NOT NULL, account character varying(16), used bit(1) DEFAULT B'0'::"bit" NOT NULL);
CREATE TABLE locked (account character varying(16));
CREATE TABLE lastblock (block character varying(64));
CREATE TABLE txlog (timestamp double precision, token character varying(8), source character varying(16), destination character varying(16), amount bigint, transaction character varying(64), address character varying(90));
INSERT INTO lastblock VALUES ('0');
ALTER TABLE accounts ADD CONSTRAINT accounts_pkey PRIMARY KEY (account);
ALTER TABLE address_account ADD CONSTRAINT address_account_pkey PRIMARY KEY (address);
ALTER TABLE address_account ADD CONSTRAINT address_account_account_fkey FOREIGN KEY (account) REFERENCES accounts(account);
ALTER TABLE locked ADD CONSTRAINT locked_pkey PRIMARY KEY (account);

Running it:

  • Start up the theholyroger daemon (theholyrogerd)
  • Launch the bot with python Main.py

About

The official TheHolyRogerCoin IRC tipbot. Resides in #TheHolyRoger at freenode.

irc://irc.freenode.net/TheHolyRoger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages