-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
49 lines (37 loc) · 1.59 KB
/
Copy pathREADME
File metadata and controls
49 lines (37 loc) · 1.59 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
Endsinger - Discord bot
=======================
Endsinger is a discord bot written in go.
You can add channels with a maximum message age in days,
all messages which are older than the specified limit will
be deleted.
Installation
------------
Build it with 'go build'.
Running endsinger
-----------------
Endsinger can be run as a daemon in the background
(e.g. as a system service) or via the command line.
Commandline flags are as follows:
Usage of ./endsinger:
-c string
The path to the config file. (default "/usr/local/endsinger/endsinger.conf")
-d Start the bot as a daemon process.
-p string
The path to the pid file. (default "/var/run/endsinger/endsinger.pid")
If the bot is started in daemon mode, the
pid file will be written. If the process receives
SIGTERM, the daemon will exit.
Moreover, if the bot is started as a daemon, the log
will be written via the syslog facility to the daemon log.
Bot commands
------------
The bot supports the following commands:
"/add [channel] [days]" -> Add a channel to the database. Suppose the
command is executed without any options. In that case, the current channel
with a limit of 5 days will be added to the database.
"/remove [channel]" -> Removes a channel from the database.
Like the /add command, if no channel is specified, the channel
in which the command was executed will be removed from the database.
"/update [days] [channel]" -> Update the day variable of an added channel,
if no channel is specified, the current channel will be used.
"/list" -> List all added channels.