-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.template.py
38 lines (31 loc) · 1.05 KB
/
config.template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""CactusBot configuration."""
from cactusbot.api import CactusAPI
from cactusbot.handler import Handlers
from cactusbot.handlers import (CommandHandler, EventHandler, LoggingHandler,
ResponseHandler, SpamHandler)
from cactusbot.services.beam.handler import BeamHandler
TOKEN = "OAuth_Token"
CHANNEL = "ChannelName"
API_TOKEN = "CactusAPI_Token"
API_PASSWORD = "CactusAPI_Password"
API_URL = "https://cactus.exoz.one/api/v1/"
api = CactusAPI(API_TOKEN, API_PASSWORD, url=API_URL)
# CACHE_FOLLOWS: Cache to remove chat spam (Default: True)
# CACHE_TIME: How long in seconds before resending message
# Leave at 0 for no repeat follow messages
# Only matters if CACHE_FOLLOWS is enabled
CACHE_DATA = {
"cache_follow": True,
"cache_host": True,
"cache_join": True,
"cache_leave": True,
"cache_time": 1200
}
handlers = Handlers(
LoggingHandler(),
ResponseHandler(),
EventHandler(CACHE_DATA, api),
SpamHandler(api),
CommandHandler(CHANNEL, api)
)
SERVICE = BeamHandler(CHANNEL, TOKEN, handlers)