IRC bot and webapp running guessthesong.i2p for submitting AI generated images made from song lyrics and guessing what the song is http://guessthesong.i2p
 
 
 
Go to file
simp de642692b7 added automatic image download and compression for webviewing from ardu's bot 2025-05-31 15:18:43 -04:00
data initial commit 2025-05-26 11:59:31 -04:00
i2p initial commit 2025-05-26 11:59:31 -04:00
static fixed finished page, green theme 2025-05-28 20:00:23 -04:00
templates fixed finished page, green theme 2025-05-28 20:00:23 -04:00
.gitignore Initial commit 2025-05-26 15:19:39 +00:00
LICENSE Initial commit 2025-05-26 15:19:39 +00:00
README.md readme update 2025-05-26 12:07:06 -04:00
app.py added automatic image download and compression for webviewing from ardu's bot 2025-05-31 15:18:43 -04:00
config.txt initial commit 2025-05-26 11:59:31 -04:00
game.py added automatic image download and compression for webviewing from ardu's bot 2025-05-31 15:18:43 -04:00
requirements.txt added automatic image download and compression for webviewing from ardu's bot 2025-05-31 15:18:43 -04:00
wsgi.py initial commit 2025-05-26 11:59:31 -04:00

README.md

Guessthesong

IRC bot and webapp running guessthesong.i2p for submitting AI generated images made from song lyrics and guessing what the song is.

Bot can use either SAM or regular IRC proxy tunnel like 127.0.0.1:6668. For SAM enabled, hostname is the IRC address.

git clone --config http.proxy=127.0.0.1:4444 http://git.simp.i2p/simp/guessthesong.git && cd guessthesong && python3 -m venv ./ && cd bin && source activate && cd .. && pip3 install -r requirements.txt

Settings

Most of the game related commands are changed in IRC with !admin

[proxy]
port = 4444 #http proxy tunnel, unused for now

[settings]
secret_key = <changeit> #for flask
instance_url = somewebsite.i2p #can be changed in irc
flask_port = 5000 #for debugging only
ah = <address helper>
sam = True #if True, enter hostname
gunicorn_port = 5060

[irc]
hostname = irc.simp.i2p #if SAM enabled enter the irc address, else use localhost
username = test
password = password
port = 6667
channel = #test
primary = nobody1
auth_users = nobody1, nobody2, nobody3
tr = ! #the trigger used for commands like !help

Bot commands

!help for list of commands, !help for what it does !admin help for list of admin commands

NGINX config

server {
	listen 5060;
	server_name somedomain.i2p;
	server_tokens off;
	if ($request_method !~ ^(GET)$ ) {
		return 444;
	}
	if ($http_user_agent ~* LWP::Simple|BBBike|wget) {
		return 444;
	}
	location / {
		proxy_hide_header Server;
		proxy_pass http://unix:/path/to/guessthesong/	eepsite.sock;
	}
}