Cleaned up the code a touch

This commit is contained in:
Benjamyn Love 2019-12-24 15:25:17 +11:00
parent ca1e5219e0
commit caa3d48cd3

View File

@ -2,7 +2,7 @@ import twitch
import datetime import datetime
import re import re
UserID = "oauth:9yymca9k3o4okc40lgc67q9u9x3dqe" UserID = "OAUTH:TOKEN"
PREFIX = '!' PREFIX = '!'
BOTID = '[BOT]' BOTID = '[BOT]'
@ -76,7 +76,7 @@ def main():
chat = twitch.Chat(channel='#aztecdude1', chat = twitch.Chat(channel='#aztecdude1',
nickname='AzBot', nickname='AzBot',
oauth=UserID, oauth=UserID,
helix=twitch.Helix(client_id='brxmkiwb7y8f2zec55m5oom5xu0tgo', use_cache=True)) helix=twitch.Helix(client_id='TWITCHCLIENTID', use_cache=True))
chat.subscribe(handle_message) chat.subscribe(handle_message)
chat.send(f"{BOTID} I am online now") chat.send(f"{BOTID} I am online now")