Refactoring

This commit is contained in:
Steffen Kolmer 2020-10-21 13:56:58 +02:00
parent 1c6d28b861
commit d4ec1dd775
4 changed files with 18 additions and 7 deletions

View file

@ -94,7 +94,6 @@ export default class Confetti implements ICanvasEffect {
public stop = async () => {
this.isRunning = false;
// this.particles = [];
}
private resetParticle = (particle: ConfettiParticle, width: number, height: number): ConfettiParticle => {

View file

@ -1,6 +1,14 @@
import {_t, _td} from "../../../../languageHandler";
export default [
type Effect = {
emojis: Array<string>;
msgType: string;
command: string;
description: () => string;
fallbackMessage: () => string;
}
const effects: Array<Effect> = [
{
emojis: ['🎊', '🎉'],
msgType: 'nic.custom.confetti',
@ -8,4 +16,8 @@ export default [
description: () => _td("Sends the given message with confetti"),
fallbackMessage: () => _t("sends confetti") + " 🎉",
},
]
];
export default effects;