mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 12:44:17 +02:00
feat(arabot): it's april
This commit is contained in:
parent
fbae131e4e
commit
afb5e8f013
40
src/listeners/april.ts
Normal file
40
src/listeners/april.ts
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
/*
|
||||||
|
Animal Rights Advocates Discord Bot
|
||||||
|
Copyright (C) 2023 Anthony Berg
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { Listener } from '@sapphire/framework';
|
||||||
|
import type { Message } from 'discord.js';
|
||||||
|
|
||||||
|
export class AprilMessageListener extends Listener {
|
||||||
|
public constructor(context: Listener.Context, options: Listener.Options) {
|
||||||
|
super(context, {
|
||||||
|
...options,
|
||||||
|
event: 'messageCreate',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public async run(message: Message) {
|
||||||
|
if (Math.random() < 0.01) {
|
||||||
|
await message.react('<a:dantasvibe:976309036754538676>');
|
||||||
|
} else if (Math.random() > 0.098) {
|
||||||
|
await message.channel.send('anthony is the worst coordinator, fucking demote them already');
|
||||||
|
} else if (Math.random() > 0.99) {
|
||||||
|
await message.reply('owo');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -35,9 +35,15 @@ export class VerifyReminder extends ScheduledTask {
|
|||||||
|
|
||||||
const channel = client.channels.cache.get(IDs.channels.nonVegan.general) as TextChannel;
|
const channel = client.channels.cache.get(IDs.channels.nonVegan.general) as TextChannel;
|
||||||
|
|
||||||
|
await channel.send('H-hewwo?? If uu want to haz da vegan ow activist wowe, uu\'ww need to do a voice vewification. To do this, hop into da \'Vewification\' voice channew.\n'
|
||||||
|
+ '\n'
|
||||||
|
+ 'If thewe awen\'t any vewifiews avaiwabwe, uu\'ww be disconnected, and uu can wejoin watew. (๑•́ ₃ •̀๑)');
|
||||||
|
|
||||||
|
/*
|
||||||
await channel.send('If you want to have the vegan or activist role, you\'ll need to do a voice verification. '
|
await channel.send('If you want to have the vegan or activist role, you\'ll need to do a voice verification. '
|
||||||
+ 'To do this, hop into the \'Verification\' voice channel.'
|
+ 'To do this, hop into the \'Verification\' voice channel.'
|
||||||
+ '\n\nIf there aren\'t any verifiers available, you\'ll be disconnected, and you can rejoin later.');
|
+ '\n\nIf there aren\'t any verifiers available, you\'ll be disconnected, and you can rejoin later.');
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user