Comments (2)
Couldn't the Redis cache be used to track how many tickets have been created rather than writing it to Postgres (if that's what you meant)? and if it does need to be in postgres for if the bot goes offline then you could just run a task every hour or so to update Postgres on how many open tickets there are.
from modmail.
Redis is for caching data that's pulled from the database often. Even if implemented in Redis, it would still need some place to store the information for long term/persistent storage.
You could run a task on ticket creation to see how many existing tickets there are, and label the ticket accordingly. However you would have duplicate ticket names often. Ex: You have 5 tickets. A new ticket is created and labeled ticket-006
. You close a ticket and now have 5 tickets. A new ticket is created and labeled ticket-006
.
It's just easier to name the channel some generic name and let the server staff deal with renaming it, rather than altering the database.
from modmail.
Related Issues (20)
- Disable ModMail in a server
- Ticket transfer command HOT 1
- Subscribe to a ticket HOT 3
- Allowed and denied roles for using ModMail
- Use slash commands, threads, components HOT 4
- Silent Closing
- Combined Closing Messages
- Open ticket with button or command HOT 2
- Improve blocking feature HOT 2
- Explain how this isn't a scam HOT 1
- replying to a ModMail DM leads to timeout waiting for user reaction HOT 2
- Channel command alternative to msg ModMail HOT 4
- This user id is currently logged on (ID: PiGame) HOT 2
- Backlog queue for tickets HOT 2
- Webhooks for Message Log HOT 3
- feat: Send a message to an open ticket if a user leaves the server HOT 5
- Add 'Create' command for use in server HOT 2
- Non-member can't be whitelisted HOT 4
- Commands with a ping prefix, get sent with commandonly mode off.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modmail.