2021-04-11 08:02:56 +00:00
import { User } from "discord.js" ;
2021-04-17 15:21:17 +00:00
import { Command , NamedCommand , getUserByNickname , RestCommand } from "onion-lasers" ;
2021-03-31 01:40:29 +00:00
// Quotes must be used here or the numbers will change
const registry : { [ id : string ] : string } = {
"465662909645848577" : "You're an idiot, that's what." ,
"306499531665833984" :
"Kuma, you eldritch fuck, I demand you to release me from this Discord bot and let me see my Chromebook!" ,
"137323711844974592" : "The purple haired gunner man who makes loud noises." ,
"208763015657553921" : "Minzy's master." ,
"229636002443034624" : "The ***God*** of being Smug." ,
"280876114153308161" : "The best girl." ,
"175823837835821067" : "The somehow sentient pear." ,
"145839753118351360" : "The blueberry with horns." ,
"173917366504259585" : "A talented developer." ,
"216112465321263105" : "The red strawberry cat." ,
"394808963356688394" : "The cutest, bestest, most caring girl ever." ,
"142200534781132800" : "The masters of chaos." ,
"186496078273708033" : "The cute blue cat." ,
"241293368267767808" : "The cute catgirl." ,
"540419616803913738" : "The generically Generic hologram man." ,
"157598993298227211" : "The somehow sentient bowl of nachos." ,
"225214401228177408" : "The CMD user." ,
"224619540263337984" : "The guy that did 50% of the work." ,
"374298111255773184" : "The cutest fox around." ,
"150400803503472640" : "The big huggy turtle boye." ,
"620777734427115523" : "The small huggy turtle boye." ,
"310801870048198667" : "An extremely talented artist and modder." ,
"328223274133880833" : "The stealthiest hitman." ,
"219661798742163467" : "An extremely talented artist and modder." ,
"440399719076855818" :
2021-04-04 20:54:51 +00:00
"You are, uhh, Stay Put, Soft Puppy, Es-Pee, Swift Pacemaker, Smug Poyo, and many more.\n...Seriously, this woman has too many names." ,
2021-04-05 11:59:28 +00:00
"243061915281129472" :
2021-04-06 06:48:17 +00:00
"Some random conlanger, worldbuilder and programmer doofus. ~~May also secretly be a nyan. :3~~" ,
2021-04-07 06:43:39 +00:00
"792751612904603668" :
"Some random nyan. :3 ~~May also secretly be a conlanger, worldbuilder and programmer doofus.~~" ,
2021-04-06 00:33:34 +00:00
"367439475153829892" : "A weeb." ,
"760375501775700038" : "˙qǝǝʍ ∀" ,
"389178357302034442" : "In his dreams, he is the star. its him. <:itsMe:808174425253871657>" ,
2021-04-15 23:14:21 +00:00
"606395763404046349" : "Me." ,
"237359961842253835" : "Good question." ,
2021-04-21 02:40:21 +00:00
"320680803124248576" : "The resident meat lump and certified non-weeb. Inquire directly for details and keep that honey glaze to yourself." ,
2021-04-15 23:14:21 +00:00
"689538764950994990" :
2021-04-21 03:11:07 +00:00
"The slayer of memes, a vigilante of the voidborn, and the self-proclaimed prophet of Xereptheí.\n> And thus, I shall remain dormant once more. For when judgement day arrives, those whose names are sung shall pierce the heavens." ,
"273599683132260354" :
"Does memes, art crimes, programming, programming accessories, and is accessory to meme, programming, and art crimes. Also, tiny potato." ,
"156532969119547393" : "Someone pretty cool for a bird made out of fire." ,
"388522171393245184" : "The bat. Likes pats. If mean, apply whacks. 🗞️" ,
"138840343855497216" : "your face is a whois entry"
2021-03-31 01:40:29 +00:00
} ;
2021-04-05 12:21:27 +00:00
export default new NamedCommand ( {
2021-03-31 01:40:29 +00:00
description : "Tells you who you or the specified user is." ,
aliases : [ "whoami" ] ,
2021-04-11 09:11:21 +00:00
async run ( { send , author } ) {
2021-04-05 12:21:27 +00:00
const id = author . id ;
2021-03-31 01:40:29 +00:00
if ( id in registry ) {
2021-04-21 17:38:52 +00:00
send ( ` ${ author } ${ registry [ id ] } ` , { allowedMentions : { parse : [ ] } } ) ;
2021-03-31 01:40:29 +00:00
} else {
2021-04-10 13:34:55 +00:00
send ( "You haven't been added to the registry yet!" ) ;
2021-03-31 01:40:29 +00:00
}
} ,
2021-04-06 06:15:17 +00:00
id : "user" ,
2021-03-31 01:40:29 +00:00
user : new Command ( {
2021-04-11 09:11:21 +00:00
async run ( { send , args } ) {
2021-04-05 12:21:27 +00:00
const user : User = args [ 0 ] ;
2021-03-31 01:40:29 +00:00
const id = user . id ;
if ( id in registry ) {
2021-04-21 17:38:52 +00:00
send ( ` ${ user } ${ registry [ id ] } ` , { allowedMentions : { parse : [ ] } } ) ;
2021-03-31 01:40:29 +00:00
} else {
2021-04-21 17:38:52 +00:00
send ( ` ${ user } hasn't been added to the registry yet! ` , { allowedMentions : { parse : [ ] } } ) ;
2021-03-31 01:40:29 +00:00
}
}
} ) ,
2021-04-10 17:07:55 +00:00
any : new RestCommand ( {
2021-04-11 09:11:21 +00:00
async run ( { send , guild , combined } ) {
2021-04-17 15:21:17 +00:00
const user = await getUserByNickname ( combined , guild ) ;
2021-03-31 01:40:29 +00:00
2021-04-17 15:21:17 +00:00
if ( typeof user !== "string" ) {
if ( user . id in registry ) {
2021-04-21 17:38:52 +00:00
send ( ` ${ user } ${ registry [ user . id ] } ` , { allowedMentions : { parse : [ ] } } ) ;
2021-03-31 01:40:29 +00:00
} else {
2021-04-21 17:38:52 +00:00
send ( ` ${ user } hasn't been added to the registry yet! ` , { allowedMentions : { parse : [ ] } } ) ;
2021-03-31 01:40:29 +00:00
}
} else {
2021-04-17 15:21:17 +00:00
send ( user ) ;
2021-03-31 01:40:29 +00:00
}
}
} )
} ) ;