-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig_sample.json
More file actions
39 lines (29 loc) · 2.09 KB
/
config_sample.json
File metadata and controls
39 lines (29 loc) · 2.09 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
{
"_comment0": "Keys in the form of '_comment<num>' are comments to this json document and they are ignored. But DON'T PUT COMMENTS IN YOUR 'vcard' DEFINITION!",
"_comment1": "These are the general configuration keys, you should use all of them and adjust them to your bots XMPP account",
"jid": "<botname>@domain.tld",
"password": "<password>",
"nick": "<bot nick>",
"_comment1_1": "Optional 'host' and 'port' if they differ from the jid and the normal port. Delete if not used.",
"host": "domain.tld",
"port": 5222,
"_comment1_2": "The 'timezone' key holds the timezone for the bot. It is used for the reminder plugin and for displaying times in the 'time' command for example. You can find a list of valid timezones at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. Use the 'TZ identifier' from the list. Setting a <TZ></TZ> field in your vcard.py won't be recognized.",
"timezone": "Europe/Berlin",
"_comment2": "The 'owner' key holds the bare XMPP JID of the allmighty owner of the bot for administration",
"owner": "<owner>@domain.tld",
"_comment3": "the 'prefix' key holds the prefix the commands need to be triggered like ',pong'. Can be set to '!' but consider clashes with other bots",
"prefix": ",",
"_comment4": "The 'db' key holds the name of the database file. It will be stored in the bots main directory you cloned. The 'stop_cmd' is a list of the parts (strings) the stop command is created from (for bot shutdown).",
"db": "bot.db",
"stop_cmd": ["/usr/bin/systemctl", "--user", "stop", "envsbot.service"],
"_comment5": "Your YouTube API key for getting Information about Videos with the urlcheck plugin about videos.",
"youtube_api_key": "<your_youtube_api_key>",
"_comment6": "Avatar image name and type. Types may only be 'image/jpeg' and 'image/png' AFAIK",
"avatar": "avatar.jpg",
"avatar_type": "image/jpeg",
"_comment101": "Maximum age for reminders in days. Reminders older than this will be rejected.",
"reminder_max_age_days": 365,
"_comment102": "rss feeds config",
"rss_global_query_interval": 1200,
"max_new_feed_entries": 5
}