Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const commands = new discord.command.CommandGroup({
- defaultPrefix: '!'
- });
- let list: string[] = ['retard', 'fuck', 'ass', 'whore', 'bitch', 'dick'];
- //let cursetime: number = 0;
- const curses = new pylon.KVNamespace('Curses');
- async function getCurse(userId: discord.Snowflake): Promise<number> {
- const bal = await curses.get<number>(userId);
- return bal || 0;
- }
- //commands.raw('swearcount', (message) => message.reply(cursetime));
- discord.on('MESSAGE_CREATE', async (message) => {
- if (list.some((word) => message.content.toLowerCase().includes(word))) {
- await message.reply('This is a christian server...');
- console.log(Date.now);
- await curses.put(message.author.id, 1);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement