Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions commands/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func isRangeInCode(spoilerRange []int, codeRanges [][]int) bool {

func InitializeDiscordBot() {
service.Discord.AddHandler(OnDiscordMessage)
service.Discord.AddHandler(OnGuildMemberUpdate)
service.Discord.AddHandler(LogUserMessage)
service.Discord.AddHandler(LogUserReaction)
service.Discord.AddHandler(OnMessageUpdate)
Expand All @@ -103,12 +102,6 @@ func OnDiscordMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
Ping(args, s, m)
case "say":
Say(args, s, m)
case "verify":
Verify(args, s, m)
case "subteam":
Subteam(args, s, m)
case "rs":
RemoveSubteam(args, s, m)
case "github":
Github(args, s, m)
case "drive":
Expand All @@ -117,8 +110,6 @@ func OnDiscordMessage(s *discordgo.Session, m *discordgo.MessageCreate) {
Whois(args, s, m)
case "users":
Users(args, s, m)
case "alumni":
Alumni(args, s, m)
default:
utils.SugarLogger.Infof("Command not found: %s", command)
}
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
)

var Version = "4.6.2"
var Version = "4.7.1"
var Env = os.Getenv("ENV")
var Port = os.Getenv("PORT")
var Prefix = os.Getenv("PREFIX")
Expand Down
1 change: 0 additions & 1 deletion controller/route_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ func InitializeRoutes(router *gin.Engine) {
router.GET("/users/:userID", GetUserByID)
router.POST("/users/:userID", CreateUser)
router.GET("/users/:userID/roles", GetAllRolesForUser)
router.POST("/users/:userID/roles", SetRolesForUser)
router.GET("/users/:userID/auth", GetAuthForUser)
router.DELETE("/users/:userID/auth", ResetAccountPassword)
router.GET("/users/:userID/drive", GetDriveStatusForUser)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.1 // indirect
github.com/robfig/cron/v3 v3.0.1
github.com/rogpeppe/go-internal v1.12.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ github.com/pelletier/go-toml/v2 v2.2.1/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/singlestore-labs/gorm-singlestore v1.2.0 h1:mccrEa5tyZDvq7LdEl7oIVfizVC0gxkcf2MHoZG1TWQ=
Expand Down
52 changes: 0 additions & 52 deletions jobs/discord.go

This file was deleted.

66 changes: 0 additions & 66 deletions jobs/drive.go

This file was deleted.

31 changes: 0 additions & 31 deletions jobs/github.go

This file was deleted.

6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"sentinel/config"
"sentinel/controller"
"sentinel/database"
"sentinel/jobs"
"sentinel/service"
"sentinel/utils"
)
Expand All @@ -22,13 +21,8 @@ func main() {
service.ConnectDiscord()
service.InitializeRoles()
service.InitializeSubteams()
go service.SyncRolesForAllUsers()
commands.InitializeDiscordBot()

jobs.RegisterDriveCronJob()
jobs.RegisterGithubCronJob()
jobs.RegisterDiscordCronJob()

router := controller.SetupRouter()
controller.InitializeRoutes(router)
err := router.Run(":" + config.Port)
Expand Down
Loading
Loading