Daily Payout (custom script)

customscript
commands
dakoda
javascript
phantombot

#1

This cool custom script will let you have a daily payout system for your bot!

Current Version:
1.0.0

Contributors:
ImChrisP (For The Idea)

Setup:
Install the scripts below into the correct folders then continue.

  • Run the command !coolcom !daily 86400 user to set the cool down for each user to 24 hours.
  • Use the command !daily set to set the settings for the !daily command.

Files:

Example:
image


Custom Command (Daily Points)
#2

I see this is on twitch but is there a way to integrate this into discord?


#3

i could if i was not lazy :slight_smile: but id have to look on how it works as its a currency for twitch


#4

You can use the currency in discord. It’s really just a matter of converting the file over and making it so only users with linked twitch accounts can access it. The other game scripts that are for discord have code showing how to do this.


#5

Discord Version

I’m not 100% sure it works as i didn’t test it but it should do the job

NOTE you cant change the basecommand for the discord version but u can add that if you wish i just made the base script


#6

you might not be able to change the base command but just as make an alias let me give it a try


#7

so I got the file downloaded it, added it, (im assuming !daily is the base command) but I get no response, not even in the command.exe window


#8

worked for me make sure u have it installed in the correct folder


#9

PhantomBot-2.4.2\scripts\discord\custom\systems\dailySystem.js

This is the exact file location, (minus my computer name and drive blah blah) I put it straight under system to begin with, then I went by your file location.


#10

and you have your account linked ??


#11

yupp

going through the loaded modules in the cmd.exe prompt the module itself is loading and enabled but when I do the command it doent give a negative or positive response


#12

ok hang on I just got an error

[ERROR] [init.js:325] (hook.call, discordChannelCommand, ./discord/custom/dailySystem.js) ReferenceError: “isMod” is not defined.


#13

you must of put the none discord version in the discord folder LUL


#14

one issue with having it in discord and twitch is that the cool down isnt the same for both so they can claim it in each spot even if they already did twitch they can do it again in discord


#15

I just went back to make sure I did the discord one and it gave me the same error message


#16

Version:
1.0.1

Changes:

  • Added a check to look if the command has been ran on that date
  • Added a VIP rank payout for them cool VIP’s

Files: