Commit Graph

74 Commits (0918eda312769334ef4c1d2b5866a6384a16ab27)

Author SHA1 Message Date
Marc Egerton df7be2f636 Main/Features: Implement single handler function, Add deleted message logging. 2020-05-25 10:12:24 +01:00
Marc Egerton bf65b0b968 Features: Add clarifying example for usercolor. 2020-05-25 07:35:03 +01:00
Marc Egerton bf88ee3e5c Features: Delete Purged message after 15 seconds. 2020-05-25 07:32:23 +01:00
Marc Egerton 3b15e39bb0 Features: Use User instead of GuildMember for ban handling. 2020-05-25 07:28:38 +01:00
Marc Egerton cdf772707d Features: Add command to print the server rules, from JSON. 2020-05-09 12:56:58 +01:00
Marc Egerton 67768c6ef4 Features: Add Ban and Kick user help text. 2020-05-08 07:37:19 +01:00
Marc Egerton 6daae3d97c Features: Add Ban and Kick user commands. 2020-05-08 07:33:08 +01:00
Marc Egerton cbfd937464 Features: Move to dynamic Guild ID property instead of config file's where possible. 2020-05-08 07:32:45 +01:00
Marc Egerton 54ea3b3c4e Features: Add admin override for markdown info auto-cleanup. 2020-05-08 06:29:08 +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 1c907a4f6d Features: Add serverinfo command to help text. 2020-05-04 21:58:05 +01:00
Marc Egerton 397468bf14 Features: Make User Info command look similar to Server Info. 2020-05-04 21:57:19 +01:00
Marc Egerton 598b605ed2 Features: Add Server Info command. 2020-05-04 21:50:17 +01:00
Marc Egerton 568a614dfb
Features: Add Date stamp and requester information to embeds. 2020-04-27 19:31:26 +01:00
Marc Egerton e266ca8fe1
Features: Add missing newline to log output. 2020-04-27 19:06:30 +01:00
Marc Egerton 09a5278dac Features: Disable responses in direct messages. 2020-04-27 05:59:08 +01:00
Marc Egerton 1d970de88a Features: Make cat work for all roles. 2020-04-26 21:05:39 +01:00
Marc Egerton 5d3d3c41b3 Features: Add basic userinfo command. 2020-04-24 17:18:17 +01:00
Marc Egerton 3cad3ec3b2 Features: Add Inches <-> Centimeters conversion commands. 2020-04-22 21:55:28 +01:00
Marc Egerton 2e0b2f2011 Features: Add Meters <-> Feet conversion commands. 2020-04-22 21:48:12 +01:00
Marc Egerton fa7172a2a7 Misc: Fix README link 2020-04-22 21:27:05 +01:00
Marc 968007b058
Add README 2020-04-22 19:05:26 +01:00
Marc 873ba7ee82
Add BSD-3 License 2020-04-22 19:04:18 +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