mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Add fortune command
This commit is contained in:
parent
4948302324
commit
e6f5170bd7
2 changed files with 135 additions and 89 deletions
|
@ -1,133 +1,135 @@
|
||||||
# Imports go here!
|
# Imports go here!
|
||||||
|
from .ahnonlosoio import AhnonlosoioCommand
|
||||||
|
from .brawlhalla import BrawlhallaCommand
|
||||||
|
from .cat import CatCommand
|
||||||
from .ciaoruozi import CiaoruoziCommand
|
from .ciaoruozi import CiaoruoziCommand
|
||||||
from .color import ColorCommand
|
from .color import ColorCommand
|
||||||
from .cv import CvCommand
|
from .cv import CvCommand
|
||||||
|
from .cvstats import CvstatsCommand
|
||||||
from .diario import DiarioCommand
|
from .diario import DiarioCommand
|
||||||
from .rage import RageCommand
|
|
||||||
from .reminder import ReminderCommand
|
|
||||||
from .ship import ShipCommand
|
|
||||||
from .smecds import SmecdsCommand
|
|
||||||
from .videochannel import VideochannelCommand
|
|
||||||
from .pause import PauseCommand
|
|
||||||
from .play import PlayCommand
|
|
||||||
from .queue import QueueCommand
|
|
||||||
from .skip import SkipCommand
|
|
||||||
from .summon import SummonCommand
|
|
||||||
from .youtube import YoutubeCommand
|
|
||||||
from .soundcloud import SoundcloudCommand
|
|
||||||
from .emojify import EmojifyCommand
|
|
||||||
from .leagueoflegends import LeagueoflegendsCommand
|
|
||||||
from .diarioquote import DiarioquoteCommand
|
from .diarioquote import DiarioquoteCommand
|
||||||
from .peertubeupdates import PeertubeUpdatesCommand
|
from .diarioshuffle import DiarioshuffleCommand
|
||||||
from .googlevideo import GooglevideoCommand
|
from .dota import DotaCommand
|
||||||
from .yahoovideo import YahoovideoCommand
|
|
||||||
from .userinfo import UserinfoCommand
|
|
||||||
from .spell import SpellCommand
|
|
||||||
from .ahnonlosoio import AhnonlosoioCommand
|
|
||||||
from .eat import EatCommand
|
from .eat import EatCommand
|
||||||
from .pmots import PmotsCommand
|
from .elevatormusic import ElevatormusicCommand
|
||||||
from .peertube import PeertubeCommand
|
from .emojify import EmojifyCommand
|
||||||
from .funkwhale import FunkwhaleCommand
|
|
||||||
from .eval import EvalCommand
|
from .eval import EvalCommand
|
||||||
from .exec import ExecCommand
|
from .exec import ExecCommand
|
||||||
from .trivia import TriviaCommand
|
from .fortune import FortuneCommand
|
||||||
from .steampowered import SteampoweredCommand
|
from .funkwhale import FunkwhaleCommand
|
||||||
from .steammatch import SteammatchCommand
|
from .funkwhalealbum import FunkwhalealbumCommand
|
||||||
from .dota import DotaCommand
|
|
||||||
from .magickfiorygi import MagickfiorygiCommand
|
|
||||||
from .brawlhalla import BrawlhallaCommand
|
|
||||||
from .diarioshuffle import DiarioshuffleCommand
|
|
||||||
from .funkwhaleplaylist import FunkwhaleplaylistCommand
|
from .funkwhaleplaylist import FunkwhaleplaylistCommand
|
||||||
from .voicestatus import VoicestatusCommand
|
from .givefiorygi import GivefiorygiCommand
|
||||||
from .playmode import PlaymodeCommand
|
from .givetreasure import GivetreasureCommand
|
||||||
from .lazyplay import LazyplayCommand
|
from .googlevideo import GooglevideoCommand
|
||||||
|
from .help import HelpCommand
|
||||||
from .lazyfunkwhale import LazyfunkwhaleCommand
|
from .lazyfunkwhale import LazyfunkwhaleCommand
|
||||||
|
from .lazyfunkwhalealbum import LazyfunkwhalealbumCommand
|
||||||
from .lazyfunkwhaleplaylist import LazyfunkwhaleplaylistCommand
|
from .lazyfunkwhaleplaylist import LazyfunkwhaleplaylistCommand
|
||||||
from .lazygooglevideo import LazygooglevideoCommand
|
from .lazygooglevideo import LazygooglevideoCommand
|
||||||
from .lazypeertube import LazypeertubeCommand
|
from .lazypeertube import LazypeertubeCommand
|
||||||
|
from .lazyplay import LazyplayCommand
|
||||||
from .lazysoundcloud import LazysoundcloudCommand
|
from .lazysoundcloud import LazysoundcloudCommand
|
||||||
from .lazyyahoovideo import LazyyahoovideoCommand
|
from .lazyyahoovideo import LazyyahoovideoCommand
|
||||||
from .lazyyoutube import LazyyoutubeCommand
|
from .lazyyoutube import LazyyoutubeCommand
|
||||||
from .funkwhalealbum import FunkwhalealbumCommand
|
from .leagueoflegends import LeagueoflegendsCommand
|
||||||
from .lazyfunkwhalealbum import LazyfunkwhalealbumCommand
|
from .magickfiorygi import MagickfiorygiCommand
|
||||||
from .matchmaking import MatchmakingCommand
|
|
||||||
from .cvstats import CvstatsCommand
|
|
||||||
from .elevatormusic import ElevatormusicCommand
|
|
||||||
from .royalpackversion import RoyalpackCommand
|
|
||||||
from .givefiorygi import GivefiorygiCommand
|
|
||||||
from .help import HelpCommand
|
|
||||||
from .pug import PugCommand
|
|
||||||
from .magicktreasure import MagicktreasureCommand
|
from .magicktreasure import MagicktreasureCommand
|
||||||
from .treasure import TreasureCommand
|
from .matchmaking import MatchmakingCommand
|
||||||
from .givetreasure import GivetreasureCommand
|
from .pause import PauseCommand
|
||||||
from .cat import CatCommand
|
from .peertube import PeertubeCommand
|
||||||
|
from .peertubeupdates import PeertubeUpdatesCommand
|
||||||
from .ping import PingCommand
|
from .ping import PingCommand
|
||||||
|
from .play import PlayCommand
|
||||||
|
from .playmode import PlaymodeCommand
|
||||||
|
from .pmots import PmotsCommand
|
||||||
|
from .pug import PugCommand
|
||||||
|
from .queue import QueueCommand
|
||||||
|
from .rage import RageCommand
|
||||||
|
from .reminder import ReminderCommand
|
||||||
|
from .royalpackversion import RoyalpackCommand
|
||||||
|
from .ship import ShipCommand
|
||||||
|
from .skip import SkipCommand
|
||||||
|
from .smecds import SmecdsCommand
|
||||||
|
from .soundcloud import SoundcloudCommand
|
||||||
|
from .spell import SpellCommand
|
||||||
|
from .steammatch import SteammatchCommand
|
||||||
|
from .steampowered import SteampoweredCommand
|
||||||
|
from .summon import SummonCommand
|
||||||
|
from .treasure import TreasureCommand
|
||||||
|
from .trivia import TriviaCommand
|
||||||
|
from .userinfo import UserinfoCommand
|
||||||
|
from .videochannel import VideochannelCommand
|
||||||
|
from .voicestatus import VoicestatusCommand
|
||||||
|
from .yahoovideo import YahoovideoCommand
|
||||||
|
from .youtube import YoutubeCommand
|
||||||
|
|
||||||
# Enter the commands of your Pack here!
|
# Enter the commands of your Pack here!
|
||||||
available_commands = [
|
available_commands = [
|
||||||
|
AhnonlosoioCommand,
|
||||||
|
BrawlhallaCommand,
|
||||||
|
CatCommand,
|
||||||
CiaoruoziCommand,
|
CiaoruoziCommand,
|
||||||
ColorCommand,
|
ColorCommand,
|
||||||
CvCommand,
|
CvCommand,
|
||||||
|
CvstatsCommand,
|
||||||
DiarioCommand,
|
DiarioCommand,
|
||||||
RageCommand,
|
|
||||||
ReminderCommand,
|
|
||||||
ShipCommand,
|
|
||||||
SmecdsCommand,
|
|
||||||
VideochannelCommand,
|
|
||||||
PauseCommand,
|
|
||||||
PlayCommand,
|
|
||||||
QueueCommand,
|
|
||||||
SkipCommand,
|
|
||||||
SummonCommand,
|
|
||||||
YoutubeCommand,
|
|
||||||
SoundcloudCommand,
|
|
||||||
EmojifyCommand,
|
|
||||||
LeagueoflegendsCommand,
|
|
||||||
DiarioquoteCommand,
|
DiarioquoteCommand,
|
||||||
PeertubeUpdatesCommand,
|
DiarioshuffleCommand,
|
||||||
GooglevideoCommand,
|
DotaCommand,
|
||||||
YahoovideoCommand,
|
|
||||||
UserinfoCommand,
|
|
||||||
SpellCommand,
|
|
||||||
AhnonlosoioCommand,
|
|
||||||
EatCommand,
|
EatCommand,
|
||||||
PmotsCommand,
|
ElevatormusicCommand,
|
||||||
PeertubeCommand,
|
EmojifyCommand,
|
||||||
EvalCommand,
|
EvalCommand,
|
||||||
ExecCommand,
|
ExecCommand,
|
||||||
|
FortuneCommand,
|
||||||
|
FunkwhalealbumCommand,
|
||||||
FunkwhaleCommand,
|
FunkwhaleCommand,
|
||||||
TriviaCommand,
|
|
||||||
SteampoweredCommand,
|
|
||||||
SteammatchCommand,
|
|
||||||
DotaCommand,
|
|
||||||
MagickfiorygiCommand,
|
|
||||||
BrawlhallaCommand,
|
|
||||||
DiarioshuffleCommand,
|
|
||||||
FunkwhaleplaylistCommand,
|
FunkwhaleplaylistCommand,
|
||||||
VoicestatusCommand,
|
GivefiorygiCommand,
|
||||||
PlaymodeCommand,
|
GivetreasureCommand,
|
||||||
LazyplayCommand,
|
GooglevideoCommand,
|
||||||
|
HelpCommand,
|
||||||
|
LazyfunkwhalealbumCommand,
|
||||||
LazyfunkwhaleCommand,
|
LazyfunkwhaleCommand,
|
||||||
LazyfunkwhaleplaylistCommand,
|
LazyfunkwhaleplaylistCommand,
|
||||||
LazygooglevideoCommand,
|
LazygooglevideoCommand,
|
||||||
LazypeertubeCommand,
|
LazypeertubeCommand,
|
||||||
|
LazyplayCommand,
|
||||||
LazysoundcloudCommand,
|
LazysoundcloudCommand,
|
||||||
LazyyahoovideoCommand,
|
LazyyahoovideoCommand,
|
||||||
LazyyoutubeCommand,
|
LazyyoutubeCommand,
|
||||||
FunkwhalealbumCommand,
|
LeagueoflegendsCommand,
|
||||||
LazyfunkwhalealbumCommand,
|
MagickfiorygiCommand,
|
||||||
MatchmakingCommand,
|
|
||||||
CvstatsCommand,
|
|
||||||
ElevatormusicCommand,
|
|
||||||
RoyalpackCommand,
|
|
||||||
GivefiorygiCommand,
|
|
||||||
HelpCommand,
|
|
||||||
PugCommand,
|
|
||||||
MagicktreasureCommand,
|
MagicktreasureCommand,
|
||||||
TreasureCommand,
|
MatchmakingCommand,
|
||||||
GivetreasureCommand,
|
PauseCommand,
|
||||||
CatCommand,
|
PeertubeCommand,
|
||||||
|
PeertubeUpdatesCommand,
|
||||||
PingCommand,
|
PingCommand,
|
||||||
|
PlayCommand,
|
||||||
|
PlaymodeCommand,
|
||||||
|
PmotsCommand,
|
||||||
|
PugCommand,
|
||||||
|
QueueCommand,
|
||||||
|
RageCommand,
|
||||||
|
ReminderCommand,
|
||||||
|
RoyalpackCommand,
|
||||||
|
ShipCommand,
|
||||||
|
SkipCommand,
|
||||||
|
SmecdsCommand,
|
||||||
|
SoundcloudCommand,
|
||||||
|
SpellCommand,
|
||||||
|
SteammatchCommand,
|
||||||
|
SteampoweredCommand,
|
||||||
|
SummonCommand,
|
||||||
|
TreasureCommand,
|
||||||
|
TriviaCommand,
|
||||||
|
UserinfoCommand,
|
||||||
|
VideochannelCommand,
|
||||||
|
VoicestatusCommand,
|
||||||
|
YahoovideoCommand,
|
||||||
|
YoutubeCommand,
|
||||||
]
|
]
|
||||||
|
|
||||||
# Don't change this, it should automatically generate __all__
|
# Don't change this, it should automatically generate __all__
|
||||||
|
|
44
royalpack/commands/fortune.py
Normal file
44
royalpack/commands/fortune.py
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
from typing import *
|
||||||
|
import royalnet
|
||||||
|
import royalnet.commands as rc
|
||||||
|
import random
|
||||||
|
import datetime
|
||||||
|
|
||||||
|
|
||||||
|
class FortuneCommand(rc.Command):
|
||||||
|
name: str = "fortune"
|
||||||
|
|
||||||
|
description: str = "Quanto sarai fortunato oggi?"
|
||||||
|
|
||||||
|
syntax: str = ""
|
||||||
|
|
||||||
|
_fortunes = [
|
||||||
|
"😄 Oggi sarà una fantastica giornata!",
|
||||||
|
"😌 Oggi sarà una giornata molto chill e rilassante.",
|
||||||
|
"💰 Oggi sui tuoi alberi cresceranno più Stelline!",
|
||||||
|
"🍎 Oggi un unicorno ti lascerà la sua Blessed Apple!",
|
||||||
|
"📈 Oggi il tuo team in ranked sarà più amichevole e competente del solito!",
|
||||||
|
"🏝 Oggi potrai raggiungere l'Isola Miraggio!",
|
||||||
|
"🐱 Oggi vedrai più gatti del solito su Internet!",
|
||||||
|
"🐶 Oggi vedrai più cani del solito su Internet!",
|
||||||
|
"🐦 Oggi vedrai più uccelli del solito su Internet!",
|
||||||
|
"🐌 Oggi incontrerai una chiocciola sperduta!",
|
||||||
|
"🎁 Oggi i dispenser di regali in centro funzioneranno senza problemi!",
|
||||||
|
"🥕 Oggi il tuo raccolto avrà qualità Iridium Star!",
|
||||||
|
"🔴 Oggi troverai più oggetti di rarità rossa del solito!",
|
||||||
|
"✨ Oggi farai molti più multicast!",
|
||||||
|
"♦️ Oggi troverai una Leggendaria Dorata!",
|
||||||
|
"⭐️ Oggi la stella della RYG ti sembrerà un pochino più dritta!",
|
||||||
|
"💎 Oggi i tuoi avversari non riusciranno a deflettere i tuoi Emerald Splash!",
|
||||||
|
]
|
||||||
|
|
||||||
|
async def run(self, args: rc.CommandArgs, data: rc.CommandData) -> None:
|
||||||
|
author = await data.get_author()
|
||||||
|
today = datetime.date.today()
|
||||||
|
|
||||||
|
h = author.uid * hash(today)
|
||||||
|
|
||||||
|
r = random.Random(x=h)
|
||||||
|
|
||||||
|
message = r.sample(self._fortunes, 1)[0]
|
||||||
|
await data.reply(message)
|
Loading…
Reference in a new issue