Add roles management per reaction on a message and event reminder with role ping

This commit is contained in:
crylia
2024-09-12 05:13:56 +02:00
parent 721b0e1853
commit 677e74764c
9 changed files with 507 additions and 131 deletions

31
src/features/static.js Normal file
View File

@@ -0,0 +1,31 @@
const { CreateStatic, ReadStatic, DeleteStatic } = require('../database/staticdb')
const handleStaticAdd = async (name, creator, members, size) => {
if (!name || !createor || !members || !size) return false
const result = await CreateStatic(name, creator, members, size)
return result
}
const handleStaticGet = async (name) => {
if (!name) return false;
const result = await ReadStatic(name)
return result
}
const handleStaticDelete = async (name) => {
if (!name) return false
const result = await DeleteStatic(name)
return result
}
module.exports = {
handleStaticAdd,
handleStaticGet,
handleStaticDelete,
}