];// a list of preset death methods that can occur
];// a list of preset death methods that can occur
constbefore=[
"A name is being written...","Someone will perish soon...","A body is *about* to be discovered...",
"{p} is scribbling something in their notebook...","\*Manical laughter echoes around you*...",
"{p} laughs maniacally..."
];// things it says before the response is sent
constresponses={
constresponses={
/*an obj controlling the possible formats for the death note report*/
/*an obj controlling the possible formats for the death note report*/
news:{
news:{
@ -51,13 +57,27 @@ module.exports = {
if(args[0]=="kill"||args[0]=="k"){args.shift();}// if someone adds in 'kill' it'll remove it and act like it wasn't there, proceeding as normal.
if(args[0]=="kill"||args[0]=="k"){args.shift();}// if someone adds in 'kill' it'll remove it and act like it wasn't there, proceeding as normal.
if(!mention){returnmessage.reply("You have to write their name down in order to kill them! (In other words, please mention the user whose name you wish to write.)");}
if(!mention){returnmessage.reply("You have to write their name down in order to kill them! (In other words, please mention the user whose name you wish to write.)");}
if(!args[0].trim().match(/^<@(?:\!?)\d+>$/)){returnmessage.reply("You have to mention someone!");}
if(!args[0].trim().match(/^<@(?:\!?)\d+>$/)){returnmessage.reply("You have to mention someone!");}
if(mention.id==message.author.id){returnmessage.reply("Hehe I won't let you write your own name in the notebook! Just leave it somewhere for a few days and someone else will take it. Maybe they'll write your name...");}// users can't mention themselves
if(mention.id==client.user.id){returnmessage.reply("You can't kill me! Little did you know, I'm actually a death god!");}
.replace(/{pa}/g,victim.displayName.toLowerCase().endsWith('s')?`${victim.displayName}'`:`${victim.displayName}'s`)//{pa} = victim but with a formatted apostrophe like "WubzyGD's"
.replace(/{pa}/g,victim.displayName.toLowerCase().endsWith('s')?`${victim.displayName}'`:`${victim.displayName}'s`)//{pa} = victim but with a formatted apostrophe like "WubzyGD's"
@ -66,7 +86,9 @@ module.exports = {
.replace(/{ds}/g,moment().format("h:mm a"));// {ds} = date small, basically just the time.
.replace(/{ds}/g,moment().format("h:mm a"));// {ds} = date small, basically just the time.