Sanitize input on adding tags and say
This commit is contained in:
parent
92a6296950
commit
c19c99a796
@ -29,6 +29,7 @@ func AddCommandHandlers(h *disgoman.CommandManager) {
|
|||||||
OwnerOnly: false,
|
OwnerOnly: false,
|
||||||
Hidden: false,
|
Hidden: false,
|
||||||
RequiredPermissions: 0,
|
RequiredPermissions: 0,
|
||||||
|
SanitizeEveryone: true,
|
||||||
Invoke: sayCommand,
|
Invoke: sayCommand,
|
||||||
})
|
})
|
||||||
_ = h.AddCommand(&disgoman.Command{
|
_ = h.AddCommand(&disgoman.Command{
|
||||||
@ -65,6 +66,7 @@ func AddCommandHandlers(h *disgoman.CommandManager) {
|
|||||||
OwnerOnly: false,
|
OwnerOnly: false,
|
||||||
Hidden: false,
|
Hidden: false,
|
||||||
RequiredPermissions: 0,
|
RequiredPermissions: 0,
|
||||||
|
SanitizeEveryone: true,
|
||||||
Invoke: addTagCommand,
|
Invoke: addTagCommand,
|
||||||
})
|
})
|
||||||
_ = h.AddCommand(&disgoman.Command{
|
_ = h.AddCommand(&disgoman.Command{
|
||||||
@ -131,7 +133,7 @@ func AddCommandHandlers(h *disgoman.CommandManager) {
|
|||||||
Invoke: kickUserCommand,
|
Invoke: kickUserCommand,
|
||||||
})
|
})
|
||||||
_ = h.AddCommand(&disgoman.Command{
|
_ = h.AddCommand(&disgoman.Command{
|
||||||
Name: "addGuildCommand",
|
Name: "addGuild",
|
||||||
Aliases: nil,
|
Aliases: nil,
|
||||||
Description: "Adds the current guild to the database",
|
Description: "Adds the current guild to the database",
|
||||||
OwnerOnly: true,
|
OwnerOnly: true,
|
||||||
|
|||||||
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.14
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/bwmarrin/discordgo v0.20.2
|
github.com/bwmarrin/discordgo v0.20.2
|
||||||
github.com/dustinpianalto/disgoman v0.0.3
|
github.com/dustinpianalto/disgoman v0.0.4
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
||||||
github.com/lib/pq v1.3.0
|
github.com/lib/pq v1.3.0
|
||||||
github.com/olebedev/when v0.0.0-20190311101825-c3b538a97254
|
github.com/olebedev/when v0.0.0-20190311101825-c3b538a97254
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user