-
Notifications
You must be signed in to change notification settings - Fork 927
/
stdcommands.go
146 lines (136 loc) · 4.71 KB
/
stdcommands.go
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
package stdcommands
import (
"github.com/botlabs-gg/yagpdb/v2/bot"
"github.com/botlabs-gg/yagpdb/v2/bot/eventsystem"
"github.com/botlabs-gg/yagpdb/v2/commands"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/advice"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/allocstat"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/banserver"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/calc"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/catfact"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/ccreqs"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/cleardm"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/createinvite"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/currentshard"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/currenttime"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/customembed"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/dadjoke"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/dcallvoice"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/define"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/dictionary"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/dogfact"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/eightball"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/findserver"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/forex"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/globalrl"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/guildunavailable"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/howlongtobeat"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/info"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/inspire"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/invite"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/leaveserver"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/listflags"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/listroles"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/memstats"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/ping"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/poll"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/roast"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/roll"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/setstatus"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/simpleembed"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/sleep"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/statedbg"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/stateinfo"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/throw"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/toggledbg"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/topcommands"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/topevents"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/topgames"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/topic"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/topservers"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/unbanserver"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/undelete"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/viewperms"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/weather"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/wouldyourather"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/xkcd"
"github.com/botlabs-gg/yagpdb/v2/stdcommands/yagstatus"
)
var (
_ bot.BotInitHandler = (*Plugin)(nil)
_ commands.CommandProvider = (*Plugin)(nil)
)
type Plugin struct{}
func (p *Plugin) PluginInfo() *common.PluginInfo {
return &common.PluginInfo{
Name: "Standard Commands",
SysName: "standard_commands",
Category: common.PluginCategoryCore,
}
}
func (p *Plugin) AddCommands() {
commands.AddRootCommands(p,
// Info
info.Command,
invite.Command,
// Standard
define.Command,
weather.Command,
calc.Command,
topic.Command,
catfact.Command,
dadjoke.Command,
dogfact.Command,
advice.Command,
ping.Command,
throw.Command,
roll.Command,
customembed.Command,
simpleembed.Command,
currenttime.Command,
listroles.Command,
memstats.Command,
wouldyourather.Command,
poll.Command,
undelete.Command,
viewperms.Command,
topgames.Command,
xkcd.Command,
howlongtobeat.Command,
inspire.Command,
forex.Command,
roast.Command,
eightball.Command,
// Maintenance
stateinfo.Command,
leaveserver.Command,
banserver.Command,
cleardm.Command,
allocstat.Command,
unbanserver.Command,
topservers.Command,
topcommands.Command,
topevents.Command,
currentshard.Command,
guildunavailable.Command,
yagstatus.Command,
setstatus.Command,
createinvite.Command,
findserver.Command,
dcallvoice.Command,
ccreqs.Command,
sleep.Command,
toggledbg.Command,
globalrl.Command,
listflags.Command,
)
statedbg.Commands()
commands.AddRootCommands(p, dictionary.Command)
}
func (p *Plugin) BotInit() {
eventsystem.AddHandlerAsyncLastLegacy(p, ping.HandleMessageCreate, eventsystem.EventMessageCreate)
}
func RegisterPlugin() {
common.RegisterPlugin(&Plugin{})
}