Share your repls and programming experiences

← Back to all posts
Fishcoin - A "Cryptocurrency" I made
jort57 (25)

Fishcoin

Fishcoin is the hot (im sorry) new "cryptocurrency" (its just numbers) that is based in Discord. It is definitely not finished, and it only fits the basic criteria of a currency.

Commands

Here are some basic commands.

Register a Fishcoin Account

Just do .register. That's it!

Fishing

Fishing is how you get Fishcoins! To start fishing, do:

.fish start <minutes>

<minutes> Is how long you would like to fish. For each minute you Fish, there is a 10% chance you will find a Fishcoin. But there is a limit to how long you can fish. Right now the limit is 30 minutes, so to get the most Fishcoins, type in .fish start 30.

Paying people

To pay someone, do:

.pay @<username> <amount>

This will pay <username> <amount> fishcoins.

Conclusion

And that's pretty much all my bot has to offer. This is the link to invite it to your server.

Comments
hotnewtop
r3b0rn (28)

error Traceback (most recent call last): File "main.py", line 11, in <module> token = os.environ['TOKEN'] File "/usr/lib/python3.8/os.py", line 675, in __getitem__ raise KeyError(key) from None KeyError: 'TOKEN' (just might wanna fix)

jort57 (25)

@r3b0rn fixed, but you arent really meant to run this anyways, since it is already running permanently on a web server, if you would like to use it i put an invite link in the conclusion.

DynamicSquid (4919)

Nice! Just a tip tho:

# create a variable for this
db["data"]["users"][str(ctx.message.author.id)]

# like this:
user = db["data"]["users"][str(ctx.message.author.id)]

that way your code would be much easier to read and write :)