Update pollchat.py

This commit is contained in:
2026-03-27 06:31:19 +00:00
parent 5b615e2021
commit b8d0ff313e

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env python3
# PollChat IRC Bot - Developed by acidvegas (https://github.com/acidvegas/pollchat)
# PollChat IRC Bot - Developed by acidvegas (https://git.supernets.org/acidvegas/pollchat)
import asyncio
import random
@@ -12,8 +12,9 @@ PORT = 6697
SSL = True
NICK = 'POLLS'
USER = 'poll'
REAL = 'https://github.com/acidvegas/pollchat'
REAL = 'https://git.supernets.org/acidvegas/pollchat'
CHANNEL = '#superbowl'
NICKSERV = 'changeme'
POLL_COOLDOWN = 600 # 10 minutes
MAX_CUSTOM_OPTIONS = 10
@@ -261,6 +262,8 @@ class Bot:
return
if len(parts) >= 2 and parts[1] == '001':
await asyncio.sleep(6)
self.send(f'PRIVMSG NickServ :IDENTIFY {NICKSERV}')
self.send(f'JOIN {CHANNEL}')
return