Skip to content

Instantly share code, notes, and snippets.

View Mystik01's full-sized avatar
👋

Mystik Mystik01

👋
View GitHub Profile
client.on('messageReactionAdd', async (reaction, user, channel, message, TextChannel) => {
if (user.bot) return;
if (reaction.emoji.name === '📩') {
const ticketConfig = await TicketConfig.findOne({ where: { messageId: reaction.message.id } });
if (ticketConfig) {
const findTicket = await Ticket.findOne({ where: { authorId: user.id, resolved: false } });
if (findTicket) user.send('Please find your open ticket in the discord for help.') && reaction.users.remove(user.id);
else {
console.log('Creating ticket');
try {
@Mystik01
Mystik01 / french.md
Last active July 2, 2020 18:33
Welcome file

Starter

Odd ones out:

Il y a du soleil

J'aime jouer aux cartes