Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c0c8366b7b | |||
| ddff13518f | |||
| 310f417521 |
@@ -12,7 +12,7 @@ require (
|
||||
github.com/lestrrat-go/strftime v1.0.6
|
||||
github.com/pelletier/go-toml/v2 v2.1.0
|
||||
github.com/rivo/uniseg v0.4.4
|
||||
github.com/rqlite/sql v0.0.0-20240312185922-ffac88a740bd
|
||||
github.com/rqlite/sql v0.0.0-20241029220113-152a320b02f7
|
||||
github.com/valyala/fasttemplate v1.2.2
|
||||
go.elara.ws/logger v0.0.0-20230928062203-85e135cf02ae
|
||||
go.elara.ws/vercmp v0.0.0-20231003203944-671892886053
|
||||
|
||||
@@ -70,8 +70,8 @@ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qq
|
||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
|
||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
|
||||
github.com/rqlite/sql v0.0.0-20240312185922-ffac88a740bd h1:wW6BtayFoKaaDeIvXRE3SZVPOscSKlYD+X3bB749+zk=
|
||||
github.com/rqlite/sql v0.0.0-20240312185922-ffac88a740bd/go.mod h1:ib9zVtNgRKiGuoMyUqqL5aNpk+r+++YlyiVIkclVqPg=
|
||||
github.com/rqlite/sql v0.0.0-20241029220113-152a320b02f7 h1:Mnz6yd4FWtiD6bbH9WHFFHfrOM2OYTUTmwrsckRc4W8=
|
||||
github.com/rqlite/sql v0.0.0-20241029220113-152a320b02f7/go.mod h1:ib9zVtNgRKiGuoMyUqqL5aNpk+r+++YlyiVIkclVqPg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
||||
|
||||
@@ -26,7 +26,7 @@ func Modify(stmt, prefix, suffix string) (string, error) {
|
||||
return sb.String(), nil
|
||||
}
|
||||
|
||||
// modify changes all the table, viee, trigger, and index names in a single statement
|
||||
// modify changes all the table, view, trigger, and index names in a single statement
|
||||
func modify(stmt any, prefix, suffix string) {
|
||||
switch stmt := stmt.(type) {
|
||||
case *sqlparser.SelectStatement:
|
||||
|
||||
@@ -79,7 +79,7 @@ func (oa *owobotAPI) On(eventType string, fn goja.Value) {
|
||||
|
||||
handlersMtx.Lock()
|
||||
defer handlersMtx.Unlock()
|
||||
|
||||
|
||||
oa.loop.RunOnLoop(func(vm *goja.Runtime) {
|
||||
this := vm.ToValue(oa)
|
||||
|
||||
|
||||
@@ -131,7 +131,6 @@ func Load(dir string, sess *discordgo.Session) error {
|
||||
vm.GlobalObject().Set("discord", builtins.Constants),
|
||||
vm.GlobalObject().Set("print", fmt.Println),
|
||||
)
|
||||
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -37,4 +37,4 @@ func onRoleButton(s *discordgo.Session, i *discordgo.InteractionCreate) error {
|
||||
}
|
||||
return util.RespondEphemeral(s, i.Interaction, fmt.Sprintf("Successfully assigned role <@&%s> to you", roleID))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"database/sql"
|
||||
"errors"
|
||||
|
||||
"go.elara.ws/logger/log"
|
||||
"github.com/bwmarrin/discordgo"
|
||||
"go.elara.ws/logger/log"
|
||||
)
|
||||
|
||||
// onMemberLeave closes any tickets a user had open when they leave
|
||||
@@ -19,4 +19,4 @@ func onMemberLeave(s *discordgo.Session, gmr *discordgo.GuildMemberRemove) {
|
||||
log.Warn("Error removing ticket after user left").Err(err).Send()
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user