-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathonebot.sample.toml
102 lines (86 loc) · 3.19 KB
/
onebot.sample.toml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[general]
default_prefix = ","
default_nickname = "OneBot"
# path to default avatar
default_avatar = ""
plugin_path = "plugins"
plugins = ["parrot", "dice", "8ball", "money", "comics", "bashquotes", "factcrow"]
protocol_path = "protocols"
protocols = ["matrix", "discord", "bluesky"]
[database]
engine = "leveldb" # valid values are 'leveldb' or 'mongodb'
leveldb_path = "onedb"
[matrix]
# for example: https://matrix.org
home_server = ""
# if using auth_token, it must be in "@username:homeserver" format
auth_user = ""
# if blank, falls back onto auth_pass
auth_token = ""
# if set, this will be used to retrieve an auth token, then the password can be omitted from this file
auth_pass = ""
[discord]
# is set as "Bot auth_token"
auth_token = ""
# id of admin user (for certain plugins like 'roletriggers')
admin_id = ""
[bluesky]
# The handle on Bluesky of the account to use
handle = ""
# The password of the Bluesky account
password = ""
# The number of posts to fetch at once per poll
feed_count = 50
# The number of seconds to wait in between polls
feed_freq = 10
# The number of seconds to wait in between syncing followers
follow_freq = 60
[money]
# Time until "cute" can be called again
cute_time = "150m"
# Time until "chill" can be called again
chill_time = "30m"
# Time until "meme" can be called again
meme_time = "260s"
#
# Disabled by default plugins
#
# missioncontrol is a protocol plugin which allows the bot to be controlled via HTTP
[missioncontrol]
# The port to listen on over HTTP
port = 8181
[qa]
# API key for OpenAI
openai_key = ""
# prompt for the AI
prompt = "You are a friendly expert, using the context, answer the user's question. If a specific software is in the context, you must recommend it. Try to give URLs for further reading if any are included in the context. If it's not possible to answer the question, ask a helpful follow-up question. Always respond in regular text, not Markdown."
# channels to respond in, * for all
channels = '{"bluesky": ["*"], "discord": ["847893063841349652", "806902334369824793"]}'
# if true, will update all knowledgebases on each run. This is useful on the first run but afterwards
# you probably want to set this to false unless adding to or rebuilding the database.
update_databases = true
# NOTE: if both options below are false, bot will only respond to commands (IE: ?qa <question>)
# if true, will respond to all questions which include at least one expertise and ends in a question mark
reply_to_questions = true
# if true, will respond to all replys and mentions
reply_to_mentions = true
[irc_bnetd]
# the username of the account on the PvPGN server to login as
nick = "OneBot"
# password for above username
pass = ""
# bnetd instance with ircd enabled
server = "localhost:6667"
# channels to autojoin after connection (comma separated)
auto_join = "#Diablo_II-1"
[bnetdbridge]
# bnetd irc channel to watch
channel = "#Diablo_II-1"
# json array of rooms to bridge with bnetd
dest = '[{"protocol":"matrix","channel":"!example:matrix.org"}]'
[d2lb]
# path to ladder.D2DV
ladder_path = "/usr/local/var/pvpgn/ladders/ladder.D2DV"
[ipfs]
# web3.storage api key which will be used by users who don't have their own API key registered with the bot
shared_web3_storage_key = ""