Add rainfall effect (#7086)

Just got approval from product.  Thanks for the little bit of extra joy :-)
This commit is contained in:
Josias 2021-11-16 12:54:40 +00:00 committed by GitHub
parent 8742870b12
commit 2f4f3f2a8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 145 additions and 0 deletions

View file

@ -18,6 +18,7 @@ import { _t, _td } from "../languageHandler";
import { ConfettiOptions } from "./confetti";
import { Effect } from "./effect";
import { FireworksOptions } from "./fireworks";
import { RainfallOptions } from "./rainfall";
import { SnowfallOptions } from "./snowfall";
import { SpaceInvadersOptions } from "./spaceinvaders";
@ -50,6 +51,17 @@ export const CHAT_EFFECTS: Array<Effect<{ [key: string]: any }>> = [
gravity: 0.05,
},
} as Effect<FireworksOptions>,
{
emojis: ['🌧️', '⛈️', '🌦️'],
msgType: 'io.element.effect.rainfall',
command: 'rainfall',
description: () => _td("Sends the given message with rainfall"),
fallbackMessage: () => _t("sends rainfall") + " 🌧️",
options: {
maxCount: 600,
speed: 10,
},
} as Effect<RainfallOptions>,
{
emojis: ['❄', '🌨'],
msgType: 'io.element.effect.snowfall',