Commit Graph

14 Commits (master)

Author SHA1 Message Date
Marc Egerton 044ab7a79c
commands: remove overwatch, enable auto reconnect to WS 2022-03-12 20:30:33 +00:00
Marc 0918eda312
yo 2021-05-31 23:31:56 +01:00
Marc 479f3b5f17
yo 2021-05-29 13:17:01 +01:00
Marc f448466391
yo 2021-05-28 23:30:25 +01:00
Marc 9a5eee684e
ogrewatch 2021-05-28 23:00:42 +01:00
Marc 0f312be4c1
meh 2021-05-28 16:40:51 +01:00
Marc d6eb1c79dc
Misc: Create go module 2021-05-23 03:07:57 +01:00
Marc Egerton bc1a7952a3 Misc: Remove Member Count, Remove f.Config.Guild 2020-12-29 21:09:28 +00:00
Marc Egerton e6b7a528e5 Misc: Update both references to configuration on reload. 2020-06-22 06:35:15 +01:00
Marc Egerton 56bb2e3dec Main/Permissions/Features: Rename auth package to permissions, add ignore user functionality. 2020-05-25 23:46:15 +01:00
Marc Egerton d3fe795079 Main/Features: Add configuration management commands. 2020-05-25 22:58:38 +01:00
Marc Egerton df7be2f636 Main/Features: Implement single handler function, Add deleted message logging. 2020-05-25 10:12:24 +01:00
Marc Egerton 759eb07e40 Main/Features: Overhaul handling of commands.
Since the bot has grown to do more than just usercolor roles, the switch statement for the user-requested command has grown a lot. In order to reduce code duplication and just look better, we'll use a map of command names that have handler functions we call instead.
2020-05-04 23:03:11 +01:00
Marc Egerton d54d2bb812 Create Scuzzy
Features: Hastily add usercolor feature
Main: Show prefix in bot status
Features: add cat
Main/Features/Auth: Add basic Role Name/ID based command authentication and bot configuration.
Main: Sanity check for missing flags.
Features: Implement command deletion and tag-responses
Misc: Add cmd/main to .gitignore
Misc: Delete built binary
Main: Refactor main.go
- Use log.Fatal instead of fmt.Printf and os.Exit
- Move Config reading into seperate function
- Parse command line flags in main()
- Instantiate Features.go struct inside main()
- Use simple ticker to set bot status every 15 minutes
Auth: Refactor auth
- Return early when building Admin role list
- Move CheckAdminrole() into auth.go, remove roles.go
Features: Refactor features
- Remove New() function
- Move help.go, ping.go functionality into misc.go
Features: Add bot control feature to set status.
Features: Implement helper function for embeds, return errors.
Main: Rename config file to bot_config.json
Features: Use success embed for user color.
Features: Add purge messages feature.
Main: Add status_text property to config, use it for Bot Status.
Features: Send welcome message to new users, implement auto-join roles.
Main: Use complex user status
Main: Reduce ticker interval to 10 minutes for bot status update.
Main: Create helper function for complex custom embeds.
Features: Implement info command.
Features: Convert requested user color to lowercase.
Features: Add markdown helper
Features: Fix markdown helper typo
Features: Use error embed for handleSetStatus incorrect permissions.
Features: Add strikethrough and spoilers information to markdown info.
Features: Add info and md to help text.
Features: Use backtick instead of single quote for command prefix in help text.
Features: Remove markdown info message after 15 seconds.
Features: Fix typo in status setting permission error.
Features: Add commands to convert between Celsius and Farenheit
Features: Update help to include temperature conversion commands.
Features/Models/Main: Load color roles from JSON config.
Auth/Main/Features/Models: Implement config-based channel white/blacklisting.
Main/Models: Remove unused admin_only config field.
Features: Simplify error handling.
Auth: Remove leftover AdminOnly field.
Features: Use command restriction for usercolor commands.
Main: Update default config to restrict color and colors commands.
Auth/Features: Return true for undefined commands in restrictions list by default.
Features: Use better error messages for channel white/blacklist
Auth: Improve channel white/blacklist behavior.
Main: Replace broken ticker for status updates
Features: Get bot avatar via Discord for embed.
Features: Delete requesting message for markdown info.
Features: Handle potential error in deleting help requester message.
2020-04-22 18:54:42 +01:00