Update pollchat.py
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user