Skip to content
Closed

Iota 4 #1907

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
25d2a4c
chore(sql): Add transcript dm column to schema & sqlboiler
RhykerWells Feb 23, 2025
f5dd347
feat(tickets): Add DM transcripts
RhykerWells Feb 23, 2025
39a02a6
fix(tickets): Add missing return value
RhykerWells Feb 23, 2025
e7a3445
Merge branch 'tickets-dm' into iota-4
RhykerWells Jun 3, 2025
29e53ba
feat: remove timeout utility
RhykerWells Jun 3, 2025
546ef6b
feat: Remove twitter feeds
RhykerWells Jun 3, 2025
d7f7767
Merge branch 'removeTwitterFeeds' into removeUnusedPlugins
RhykerWells Jun 3, 2025
c4f021a
feat: Remove soundboard plugin
RhykerWells Jun 3, 2025
79f0b38
feat: remove streaming plugin
RhykerWells Jun 3, 2025
f5f6368
feat: remove fun plugin
RhykerWells Jun 3, 2025
a4d60df
feat: remove timeout tag from dashboard
RhykerWells Jun 3, 2025
9457edc
feat: remove timeout functions
RhykerWells Jun 3, 2025
e1f53c4
Merge branch 'removeUnusedModerationTools' into removeUnusedPlugins
RhykerWells Jun 3, 2025
d216e8e
Merge branch 'removeUnusedPlugins' into iota-4
RhykerWells Jun 3, 2025
542d792
update docker compose
RhykerWells Jun 3, 2025
596972f
feat: add sendTemplateDM
RhykerWells Jun 3, 2025
7bbcdbe
Merge branch 'tmplSendDM-changes' into iota-4
RhykerWells Jun 3, 2025
dd8c122
Merge branch 'master' into iota-4
RhykerWells Jun 26, 2025
37695ec
feat: Disable slash commands globally
RhykerWells Jul 3, 2025
d3a462c
Merge branch 'disable-slash' into iota-4
RhykerWells Jul 3, 2025
cc5b091
Merge branch 'sqlboiler-migration' into iota-4
RhykerWells Jul 3, 2025
960e7ce
feat(templates): add getMember to functions
RhykerWells Jul 7, 2025
d5993d1
Merge branch 'getMembers' into iota-4
RhykerWells Jul 7, 2025
bb5ccc9
feat(stdcommands): update ctime
RhykerWells Jul 8, 2025
c3900b4
feat: Remove youtube module
RhykerWells Jul 8, 2025
d573b62
feat: Remove rsvp module
RhykerWells Jul 8, 2025
5d02381
feat: Remove reddit module
RhykerWells Jul 8, 2025
379a51a
feat: Remove cah module
RhykerWells Jul 8, 2025
4f74ac3
feat: remove un-needed stdcommands
RhykerWells Jul 8, 2025
7eb6c78
feat(lib) add goblox
RhykerWells Jul 8, 2025
8ac2b74
feat: update package paths
RhykerWells Jul 11, 2025
9d80b86
feat: add the ability to retrieve ROBLOX users & groups to YAGPDB
RhykerWells Jul 12, 2025
f03cae3
feat: move yagstatus title to veil support
RhykerWells Jul 12, 2025
dff7b77
chore: update robloxgo version
RhykerWells Jul 12, 2025
57f3e0c
feat: remove GenericDiscordAPICall counter from Roblox templates
RhykerWells Jul 12, 2025
9d81155
feat: add tmplUpdateMemberRole
RhykerWells Jul 12, 2025
8e7cc0a
feat: add tmplUpdateMemberRole
RhykerWells Jul 12, 2025
a83c065
chore: update robloxgo version
RhykerWells Jul 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion admin/plugin_admin.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package admin

import (
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common"
)

var logger = common.GetPluginLogger(&Plugin{})
Expand Down
12 changes: 6 additions & 6 deletions admin/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"time"

"emperror.dev/errors"
"github.com/botlabs-gg/yagpdb/v2/bot/botrest"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/config"
"github.com/botlabs-gg/yagpdb/v2/common/internalapi"
"github.com/botlabs-gg/yagpdb/v2/lib/dshardorchestrator/orchestrator/rest"
"github.com/botlabs-gg/yagpdb/v2/web"
"github.com/RhykerWells/yagpdb/v2/bot/botrest"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/config"
"github.com/RhykerWells/yagpdb/v2/common/internalapi"
"github.com/RhykerWells/yagpdb/v2/lib/dshardorchestrator/orchestrator/rest"
"github.com/RhykerWells/yagpdb/v2/web"
"goji.io"
"goji.io/pat"
)
Expand Down
4 changes: 2 additions & 2 deletions analytics/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package analytics
import (
"sync"

"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/config"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/config"
"github.com/mediocregopher/radix/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions analytics/backgroundworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"time"

"emperror.dev/errors"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/backgroundworkers"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/backgroundworkers"
"github.com/mediocregopher/radix/v3"
)

Expand Down
4 changes: 2 additions & 2 deletions antiphishing/antiphishing.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"sync"

"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/lib/confusables"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/lib/confusables"
"github.com/mediocregopher/radix/v3"
"github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion antiphishing/backgroundworkers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sync"
"time"

"github.com/botlabs-gg/yagpdb/v2/common/backgroundworkers"
"github.com/RhykerWells/yagpdb/v2/common/backgroundworkers"
)

var _ backgroundworkers.BackgroundWorkerPlugin = (*Plugin)(nil)
Expand Down
10 changes: 5 additions & 5 deletions automod/automod.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"unicode"

"emperror.dev/errors"
"github.com/botlabs-gg/yagpdb/v2/automod/models"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/featureflags"
"github.com/botlabs-gg/yagpdb/v2/premium"
"github.com/RhykerWells/yagpdb/v2/automod/models"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/featureflags"
"github.com/RhykerWells/yagpdb/v2/premium"
"github.com/aarondl/sqlboiler/v4/queries/qm"
"github.com/karlseguin/ccache"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
)

//go:generate sqlboiler --no-hooks psql
Expand Down
26 changes: 13 additions & 13 deletions automod/automod_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ import (
"sort"
"time"

"github.com/botlabs-gg/yagpdb/v2/analytics"
"github.com/botlabs-gg/yagpdb/v2/automod/models"
"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/common/scheduledevents2"
schEventsModels "github.com/botlabs-gg/yagpdb/v2/common/scheduledevents2/models"
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
"github.com/botlabs-gg/yagpdb/v2/lib/dstate"
"github.com/volatiletech/null/v8"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
"github.com/RhykerWells/yagpdb/v2/analytics"
"github.com/RhykerWells/yagpdb/v2/automod/models"
"github.com/RhykerWells/yagpdb/v2/bot"
"github.com/RhykerWells/yagpdb/v2/bot/eventsystem"
"github.com/RhykerWells/yagpdb/v2/commands"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/scheduledevents2"
schEventsModels "github.com/RhykerWells/yagpdb/v2/common/scheduledevents2/models"
"github.com/RhykerWells/yagpdb/v2/lib/discordgo"
"github.com/RhykerWells/yagpdb/v2/lib/dstate"
"github.com/aarondl/null/v8"
"github.com/aarondl/sqlboiler/v4/boil"
"github.com/aarondl/sqlboiler/v4/queries/qm"
)

func (p *Plugin) BotInit() {
Expand Down
22 changes: 11 additions & 11 deletions automod/automod_web.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ import (
"strconv"
"strings"

"github.com/botlabs-gg/yagpdb/v2/automod/models"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/cplogs"
"github.com/botlabs-gg/yagpdb/v2/common/featureflags"
"github.com/botlabs-gg/yagpdb/v2/common/pubsub"
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
"github.com/botlabs-gg/yagpdb/v2/lib/dstate"
"github.com/botlabs-gg/yagpdb/v2/moderation"
"github.com/botlabs-gg/yagpdb/v2/web"
"github.com/RhykerWells/yagpdb/v2/automod/models"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/cplogs"
"github.com/RhykerWells/yagpdb/v2/common/featureflags"
"github.com/RhykerWells/yagpdb/v2/common/pubsub"
"github.com/RhykerWells/yagpdb/v2/lib/discordgo"
"github.com/RhykerWells/yagpdb/v2/lib/dstate"
"github.com/RhykerWells/yagpdb/v2/moderation"
"github.com/RhykerWells/yagpdb/v2/web"
"github.com/aarondl/sqlboiler/v4/boil"
"github.com/aarondl/sqlboiler/v4/queries/qm"
"github.com/fatih/structs"
"github.com/gorilla/schema"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
"goji.io"
"goji.io/pat"
)
Expand Down
2 changes: 1 addition & 1 deletion automod/cachedruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"

"emperror.dev/errors"
"github.com/botlabs-gg/yagpdb/v2/automod/models"
"github.com/RhykerWells/yagpdb/v2/automod/models"
)

type ParsedRuleset struct {
Expand Down
25 changes: 12 additions & 13 deletions automod/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@ import (
"strings"
"time"

"github.com/botlabs-gg/yagpdb/v2/automod/models"
"github.com/botlabs-gg/yagpdb/v2/bot/paginatedmessages"
"github.com/botlabs-gg/yagpdb/v2/commands"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/featureflags"
"github.com/botlabs-gg/yagpdb/v2/lib/dcmd"
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
"github.com/botlabs-gg/yagpdb/v2/lib/dstate"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
"github.com/RhykerWells/yagpdb/v2/automod/models"
"github.com/RhykerWells/yagpdb/v2/bot/paginatedmessages"
"github.com/RhykerWells/yagpdb/v2/commands"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/featureflags"
"github.com/RhykerWells/yagpdb/v2/lib/dcmd"
"github.com/RhykerWells/yagpdb/v2/lib/discordgo"
"github.com/aarondl/sqlboiler/v4/boil"
"github.com/aarondl/sqlboiler/v4/queries/qm"
)

func (p *Plugin) AddCommands() {
Expand Down Expand Up @@ -376,7 +375,7 @@ func (p *Plugin) AddCommands() {
container.AddCommand(cmdListVLC, cmdListVLC.GetTrigger())
container.AddCommand(cmdDelV, cmdDelV.GetTrigger())
container.AddCommand(cmdClearV, cmdClearV.GetTrigger())
commands.RegisterSlashCommandsContainer(container, false, func(gs *dstate.GuildSet) ([]int64, error) {
return nil, nil
})
//commands.RegisterSlashCommandsContainer(container, false, func(gs *dstate.GuildSet) ([]int64, error) {
// return nil, nil
//})
}
6 changes: 3 additions & 3 deletions automod/conditions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package automod
import (
"time"

"github.com/botlabs-gg/yagpdb/v2/bot"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
"github.com/RhykerWells/yagpdb/v2/bot"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/lib/discordgo"
)

type Condition interface {
Expand Down
94 changes: 12 additions & 82 deletions automod/effects.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ import (
"sync"
"time"

"github.com/botlabs-gg/yagpdb/v2/automod/models"
"github.com/botlabs-gg/yagpdb/v2/bot"
"github.com/botlabs-gg/yagpdb/v2/common"
"github.com/botlabs-gg/yagpdb/v2/common/scheduledevents2"
schEventsModels "github.com/botlabs-gg/yagpdb/v2/common/scheduledevents2/models"
"github.com/botlabs-gg/yagpdb/v2/common/templates"
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
"github.com/botlabs-gg/yagpdb/v2/lib/dstate"
"github.com/botlabs-gg/yagpdb/v2/moderation"
"github.com/volatiletech/null/v8"
"github.com/volatiletech/sqlboiler/v4/boil"
"github.com/volatiletech/sqlboiler/v4/queries/qm"
"github.com/RhykerWells/yagpdb/v2/automod/models"
"github.com/RhykerWells/yagpdb/v2/bot"
"github.com/RhykerWells/yagpdb/v2/common"
"github.com/RhykerWells/yagpdb/v2/common/scheduledevents2"
schEventsModels "github.com/RhykerWells/yagpdb/v2/common/scheduledevents2/models"
"github.com/RhykerWells/yagpdb/v2/common/templates"
"github.com/RhykerWells/yagpdb/v2/lib/discordgo"
"github.com/RhykerWells/yagpdb/v2/lib/dstate"
"github.com/RhykerWells/yagpdb/v2/moderation"
"github.com/aarondl/null/v8"
"github.com/aarondl/sqlboiler/v4/boil"
"github.com/aarondl/sqlboiler/v4/queries/qm"
)

type Effect interface {
Expand Down Expand Up @@ -413,76 +413,6 @@ func (mute *MuteUserEffect) MergeDuplicates(data []interface{}) interface{} {

///////////////////////////////////////////////////////

type TimeoutUserEffect struct{}

type TimeoutUserEffectData struct {
Duration int `valid:",0,40320,trimspace"`
CustomReason string `valid:",0,150,trimspace"`
}

func (timeout *TimeoutUserEffect) Kind() RulePartType {
return RulePartEffect
}

func (timeout *TimeoutUserEffect) DataType() interface{} {
return &TimeoutUserEffectData{}
}

func (timeout *TimeoutUserEffect) UserSettings() []*SettingDef {
return []*SettingDef{
{
Name: "Duration (minutes)",
Key: "Duration",
Min: int(moderation.MinTimeOutDuration.Minutes()),
Max: int(moderation.MaxTimeOutDuration.Minutes()),
Kind: SettingTypeInt,
Default: int(moderation.DefaultTimeoutDuration.Minutes()),
},
{
Name: "Custom message (empty for default)",
Key: "CustomReason",
Min: 0,
Max: 150,
Kind: SettingTypeString,
},
}
}

func (timeout *TimeoutUserEffect) Name() (name string) {
return "Timeout user"
}

func (timeout *TimeoutUserEffect) Description() (description string) {
return "Timeout the user"
}

func (timeout *TimeoutUserEffect) Apply(ctxData *TriggeredRuleData, settings interface{}) error {
// if a user is timed out, do not apply the effect again.
member := ctxData.MS.Member
if member.CommunicationDisabledUntil != nil && member.CommunicationDisabledUntil.After(time.Now()) {
return nil
}

settingsCast := settings.(*TimeoutUserEffectData)

reason := "Automoderator:\n"
if settingsCast.CustomReason != "" {
reason += settingsCast.CustomReason
} else {
reason += ctxData.ConstructReason(true)
}

duration := time.Duration(settingsCast.Duration) * time.Minute
err := moderation.TimeoutUser(nil, ctxData.GS.ID, ctxData.CS, ctxData.Message, common.BotUser, reason, &ctxData.MS.User, duration, false)
return err
}

func (timeout *TimeoutUserEffect) MergeDuplicates(data []interface{}) interface{} {
return data[0]
}

///////////////////////////////////////////////////////

type WarnUserEffect struct{}

type WarnUserEffectData struct {
Expand Down
38 changes: 21 additions & 17 deletions automod/models/automod_lists.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading