Share your repls and programming experiences

← Back to all posts
GLOBAL REPL COUNTER
CoolJames1610 (563)

I love MongoDb so I've created this!

Inspired by all the Discord counting bots XD

Please use your repl username :D - HAS TO BE ONE WORD OTHERWISE IT WILL BREAK!

Every 100 counts, the number will be highlighted and as a reward, I'll upvote 5 of your projects/comments :D

It will also highlight if it is your repl username :D

Please upvote so more people can join!

-

If there is one thing I'm not sure about, is what happens if two people enter same value at the same time...

Might implement cool down - not sure yet :)

-

Hopefully, this gets onto featured so that everyone can HELP COUNT

Goal: 1000 counts
Commentshotnewtop
ZacPlayz (64)

Upvoted!!!! LOVE IT KEEP UP THE GOOD WORK!!

CoolJames1610 (563)

ahaha thanks - trying to create a chat system using same stuff :D @ZacPlayz

CoolJames1610 (563)

but where is the upvote? o.O @ZacPlayz

VulcanWM (2104)

Can you make something like this for me? I have tried forking, but that continues from all the people that counted here. I want it to start from 0.

CoolJames1610 (563)

Do you want it to be exactly the same? @medcho

VulcanWM (2104)

Can you just write enter you username instead of repl useername? @CoolJames1610

CoolJames1610 (563)

Do you want it to be connected to a database? @medcho

CoolJames1610 (563)

For people to be able to see other people's counts, it is connected to an online database - just fork my project and remove connection string and everything to do with the database - but what exactly do you want it for? @medcho

VulcanWM (2104)

I want to put it on my website and see how many counts it gets and then I will give out 20 circuits for every 100 like you did @CoolJames1610

CoolJames1610 (563)

ah okay lemme fork my own project and do it :D @medcho

CoolJames1610 (563)

fork my project then invite me to it @medcho

CodingCactus (3066)

the thing with normal countery things, is that you can't count consecutive numbers yourself (i saw quite a few by dynamic squid and it isn't supposed to be allowed) Obviously, you can do it however you want, as it is yours lol

CoolJames1610 (563)

No no-one is supposed to. When it goes through the counting from the database, a variable name is the last name on the list. If your repl username (or the one who inputted) is = to name then it doesn't allow you. But people can obviously fork and change the code XD @CodingCactus

DynamicSquid (3232)

@CoolJames1610 Oh, actually, I think someone glitched the system first, and that allowed me to have 7 counts in a row.

CoolJames1610 (563)

It happens when ppl fork. I caugt one guy and had to change user lol @DynamicSquid

Codemonkey51 (834)

Hrmmmmmm someone glitched it I wonder who? @DynamicSquid

DynamicSquid (3232)

Oh wow this is actually pretty cool!

Kopamed (231)

@CoolJames1610 line 48, local variable mentioned before assignment

syflexer (467)

Am i aloud to put in my user name as many times as i want or no is there a rule about spamming it or no

CoolJames1610 (563)

Well, if u use the same name then you cannot put a number straight after, but you can re-run and use a different name :D @syflexer

CoolJames1610 (563)

It's fixed now :) Someone put their repl username as:
what happens if I use a fake name
lol XD thanks!
@ChezTacoz

IlyaMikheev (10)

I'm not sure, but i think someone broke the entire project...

CoolJames1610 (563)

Yeah, that happens when someone's username is more than one entry - e.g. Cool James Ill go in database and fix it :) @IlyaMikheev

CoolJames1610 (563)

fixed lol - their name was:
I wonder what happens if I use a fake name
@IlyaMikheev

ChezTacoz (297)

What does this do? I'm so confused

CoolJames1610 (563)

It's just a counting program - if you have ever had a discord counting bot, then its like that :) @ChezTacoz

CoolJames1610 (563)

It's just a joint effort of everyone to count upwards from 1 to infinity! :D @ChezTacoz

ChezTacoz (297)

@CoolJames1610 so if I put my repl.it username in it adds to the count

CoolJames1610 (563)

so, you enter your repl username and just insert whatever the next count is :D - which is 27 @ChezTacoz

firefish (419)

I'm count 21. I entered my username.

PDanielY (1061)

We can see the MongoDB username and password file.

CoolJames1610 (563)

Yeah I know. I'm gonna create a new user for everyone and hide my details XD @PDanielY

[deleted]

actually the hehe one is me

[deleted]

@CoolJames1610 so i can make fake people now?

CoolJames1610 (563)

yeah technically. I haven't found a way to authenticate to make sure that u r using ur repl username :( @Zuhdi28

[deleted]

@CoolJames1610 oh, YAY!
i think you can import repltalk but i can't use it..
ask @Codemonkey51 !

firefish (419)

@CoolJames1610 I did use my username... I'm count 21

firefish (419)

@CoolJames1610 Well... It did highlight red for me just after I entered the number 21

[deleted]

wow how do you make it global?

CoolJames1610 (563)

using MongoDB - its a database :) @Zuhdi28

[deleted]

@CoolJames1610 wow!
make a tutorial for it

CoolJames1610 (563)

ahahaha theres already some out there but I might do one :D @Zuhdi28

[deleted]

@CoolJames1610 xdxdxdxdxdxxdxdxd

CoolJames1610 (563)

people keep forking it and hacking ugh XD

CoolJames1610 (563)

@hg0428 YOU CHEATER! YOU FORKED THE REPL AND CHANGED THE CODE AHHHHHH

hg0428 (166)

I made it equal to may use name instead of input and had it automatically type in the right [email protected]