Commit Graph

12 Commits

Author SHA1 Message Date
Daniel
99f7db6dea
Add config.supportForumChannel 2022-10-19 15:25:30 -07:00
Daniel
73ee514af4
Add Review System (#27) 2022-05-12 14:15:44 -07:00
Daniel
38e283f2e0
Support tickets modals (#22)
* Update index.d.ts

* Create staff_controls.ts

* Don't allow closing of ticket if not manager

* Support locking ticket

* Update to use ticket staff controls in new tickets

* Add externalChannelId for tickets

* Add Full Private Ticket

opens a new channel related to the ticket

* Create private_ticket_staff_controls.ts

* Squashed commit of the following:

commit 185a93ff78
Author: Daniel <46201432+TechGeekGamer@users.noreply.github.com>
Date:   Sun Feb 6 18:25:19 2022 -0800

    Update meme eta messages

* Add support for modal interactions

* Move check if ticket already exists to open_ticket_prompt

* Add modal to open ticket

* Update open_ticket_prompt.ts

fix message on opening new ticket while already having one open

* Update close_ticket_.ts

* Add Config.incomingFeedbackChannel

* Receive feedback on ticket close

* Update open_ticket.ts

Update modal text

* fix incorrect linking for incoming ticket feedback

* Update close_ticket_.ts

* Open modal on tickets create command

* remove debug console logs
2022-02-13 18:18:19 -08:00
Daniel
2ab1eb687e
Add Config.staffCommandLogging 2022-01-22 16:41:26 -08:00
Daniel
ea820bfe4f
Switch msg commands to slash and subcommands (#19)
* Add subcommand support

* Migrate note command

* Migrate userinfo command

* Migrate userlog command

* Migrate warn command

* Migrate ban command

* Update .gitignore

* Update subcommand loading

* Update index.d.ts

* Migrate kick command

* Add commandName and subCommandGroup to commands

* Add logStaffCommands()

* remove console logs

* Update index.ts

* Migrate purge command

* Update moderation.ts

* Update sd.ts

* Migrate deletewarn command

* Migrate speak command

* Migrated all moderation commands

* Update index.d.ts

* Update index.ts

* Remove message command version of support, user

* Migrate shrek command

* Remove message command version of meme

* Remove leftover code in purge, shrek, speak

* Add build command

* Add gitpull command

* Add kill command

* Migrate 'bot' commands

* Move all message commands to slash commands

* Delete moderation.ts

* Update closeprompt.ts

* fix eta command loading

* Add new eta strings
2022-01-22 15:52:30 -08:00
Daniel
bbcb8e37b4
Update index.d.ts 2021-12-29 14:13:08 -08:00
Daniel
e9e133633d
config.modLogBlacklisted 2021-12-05 15:15:47 -08:00
Daniel
ecc50d6e7b
📁-> 📁 Merge Korral-Interactions and Korral-JS (#17)
* Create tn_rules.json

* Update index.d.ts

* Message commands moved to msg_commands/

* Add button commands

* Add classes

* Add slash commands

* Create deepsea.ts

* Don't delete ticket msg (wip)

* Move typings to typings/index.d.ts

* Add support for slash commands (WIP)

* Version 3.0.0

* Fix typo in lmgtfy

* Add Command#customId

* Correct indentation on open_ticket.ts

* Load buttons/commands on boot

* Update index.d.ts

* Ignore deepsea_db.json

* Add console logs

* Update cached DeepSea data on boot and every hour

* Fix typo in ButtonCommand class

* Handle button interactions

* Remove default allowedMentions

* Client#closeSupportThread fix archive and lock

* Store thread ID when starting a ticket

* Fix command loading code

* Move ActiveTickets interface to typings

* Rename hasActiveTickets -> activeTickets & save to file

* Move button command loading to function

* Move slash command loading to function

* Move all starting functions to startBot function

* Add activeTickets.json to .gitignore

* Add Client#supportThreadExists

Checks if user has an existing support thread

* Enable source maps

* Rename supportThreadExists -> getSupportThreadData

* Check for existing support thread before making a new one

* Use threadChannelId from activeTickets in client#closeSupportThread

* Get data for closing a ticket from client#getSupportThreadData

* Update createSupportThread & closeSupportThread method

* Add button to view current ticket when attempting to open new ticket

* Automatically delete thread message on thread deletion & release open state

* Update discord.js to 13.3.1

* Update types/node package

* Update packages

* Pin intro message on ticket creation

* Specify customId of command when error

* Fix role check when closing ticket

* Fix errors related to warn command

* Array<string> -> string[]

* Add comments to typings and add ticketCloseMessage prop

* Allow setting a custom message to be shown when a ticket is closed

09cdb81573

* Add support for Context Menu commands

* Add staffOnly prop to classes

- Command
- ContextMenuCommand
- ButtonCommand

* Store when a ticket was created

* Support staffOnly commands

* Add Quote Message CTX command

Reposts a message in the channel specified in config.messageQuoteChannelId

* Add config prop closingTicketsSettings

- Can set a minimum amount of time until a ticket can be closed
- Can set a message to be sent on closing a ticket

* Update close_ticket_.ts

* Add option to prompt before opening a ticket

- Added config.openingTicketPrompt
- Added open_ticket_prompt button (Will open ticket normally if config.openingTicketPrompt.enabled is not set/disabled)

* Update staff checks

* Fix avatar command

* Specify guides are not created by Team Neptune

* Fix rule command

* Update ticket.ts

* Update prompt

* Prompt for information before pinging the support role

* Update index.ts

* Update quote_message.ts

* Update close_ticket_.ts

* Ping support role after first message

* Add check to prevent crashing from invalid interaction

* Update isStaff check

* Allow removing from private ticket

* Update index.d.ts

* Allow switching between Private/Public ticket (staff required)

* Update ticket.ts
2021-12-05 14:38:56 -08:00
Daniel
b82c4641c4
Support tickets (#16)
Adds support for the ticket feature being added in https://github.com/Team-Neptune/Korral-Interactions/pull/11 by adding the following changes:
* New config prop: `Config.supportChannelId` - Channel to monitor for support threads
* New config prop: `Config.supportRoleId` - Role ID that has access to all tickets, even private ones
* New file: `privateThreads.json` - Stores the threads marked as private and authorized users/roles
* New file: `publicThreads.json` - Stores the threads marked as public and the person who started the ticket 
* Send message to people who try to join a private ticket and aren't authorized
* Auto-delete thread creation messages in the specified support channel
* Keeps support threads from archiving by sending a message every 22 hours
2021-10-06 15:58:08 -07:00
Daniel
d22b5b48c3
Update bot to discord.js v13 (#14)
* Update .gitignore

* Update tsconfig.json

* add catch

* fix script in package.json

* Update discord.js to v13

* Update index.ts

* Update user.ts

* Update support.ts

* Update moderation.ts

* Update meme.ts

* Update tsconfig.json

* Update index.d.ts
2021-09-22 08:14:24 -07:00
Daniel
d84f5ebae3
Warn behavior based on config 2021-05-19 12:57:59 -07:00
Daniel
239c6c9fd5
Move typings to its own folder 2021-05-19 08:51:05 -07:00