-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.py
More file actions
72 lines (52 loc) · 1.94 KB
/
config.py
File metadata and controls
72 lines (52 loc) · 1.94 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from string import Template
from modules.memberscount import MembersCount
from modules.textfont import TextFont
from modules.ticker import Ticker
from modules.time import Time
from modules.utils import Cycle, Format
"""
from modules.supercell import BrawlStarsTrophies, ClashRoyaleTrophies
from modules.openweathermap import OpenWeatherMap
from modules.blockedcount import BlockedCount
from modules.entityinfo import EntityInfo
from modules.lastfm import LastFm
"""
SESSION_NAME = "session"
API_ID = 1890553
API_HASH = "c6f46b5330f5953e5201c3185337ed73"
# https://developer.brawlstars.com/
BRAWLSTARS_TOKEN = ""
# http://www.last.fm/api/account/create
LASTFM_KEY = "50c4da48aa16885c9e91a6d417d601e7" # usable example key
LASTFM_USERNAME = "" # enter your last.fm username
# https://openweathermap.org
OPENWEATHERMAP_APP_ID = ""
# https://wakatime.com/api-key
WAKATIME_API_KEY = ""
MODULES = {
# Number of blocked accounts
# "blocked": BlockedCount(),
# Number of channel or group members
# "members": MembersCount("androidsmsbomber"),
# About of the entity
# "about": EntityInfo("wavecat"),
# BrawlStars Trophies by tag
# "trophies": BrawlStarsTrophies("9PG9RCUVY", BRAWLSTARS_TOKEN),
# Iterates values
# "first_name": Cycle("wavecat", "retrocat"),
# LastFM now playing
# "music": LastFm(LASTFM_KEY, LASTFM_USERNAME),
# Weather
# "weather": OpenWeatherMap(OPENWEATHERMAP_APP_ID, "Moscow"),
# WakaTime
# "coding": WakaTime(WAKATIME_API_KEY),
"first_name": TextFont(Ticker("retrocat "), TextFont.fonts()),
"last_name": TextFont(Time("%H:%M"), TextFont.numbers()),
"part": Cycle(Format("@androidsmsbomber (%s)", MembersCount("androidsmsbomber")), "@wavecatmeta")
}
INTERVAL = 30
TEMPLATES = {
"first_name": Template("$first_name"),
"last_name": Template("$last_name"),
"about": Template("$part ⛓ @stacat")
}