Share your repls and programming experiences

← Back to all posts
GLOBAL REPL COUNTER
h
CoolJames1610

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
Voters
zplusfour
VulcanWM
elijahnik1
DynamicSquid
MarcusWeinberger
AtticusKuhn
TonyLane
syflexer
ZacPlayz
Bookie0
Comments
hotnewtop
ZacPlayz

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

CoolJames1610

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

CoolJames1610

but where is the upvote? o.O @ZacPlayz

ZacPlayz

@CoolJames1610 HERE is da upvote... XD

CoolJames1610
VulcanWM

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

Yes sure! @medcho

CoolJames1610

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

VulcanWM

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

CoolJames1610

Okay @medcho

CoolJames1610

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

VulcanWM

What do you mean? @CoolJames1610

CoolJames1610

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

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

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

CoolJames1610

fork my project then invite me to it @medcho

VulcanWM
VulcanWM
CodingCactus

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

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

HackermonDev

We can see the MongoDB username and password file.

CoolJames1610

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

DynamicSquid

I think I did it?

CoolJames1610

ahahah nice! @DynamicSquid

CoolJames1610

hmmm 93 to 100 all - @DynamicSquid XD

DynamicSquid

@CoolJames1610 uh... is that cheating?

CoolJames1610

Uh... yes @DynamicSquid

DynamicSquid

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

CoolJames1610

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

DynamicSquid
Codemonkey51

Hrmmmmmm someone glitched it I wonder who? @DynamicSquid

DynamicSquid

Oh wow this is actually pretty cool!

CoolJames1610

thanks <3 @DynamicSquid

Kopamed

@CoolJames1610 line 48, local variable mentioned before assignment

CoolJames1610

thanks ill look into it @Kopamed

NoelB33

CoolJames1610

XD ill look into it @NoelBryan

syflexer

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

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

Bookie0

Noice!

CoolJames1610

Thanks :D @Bookie0

Bookie0
ChezTacoz

I got an error

CoolJames1610

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

ChezTacoz
IlyaMikheev

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

CoolJames1610

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

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

ChezTacoz

What does this do? I'm so confused

CoolJames1610

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

ChezTacoz

@CoolJames1610 but what does it count

CoolJames1610

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

ChezTacoz

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

CoolJames1610

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

CoolJames1610
firefish

I'm count 21. I entered my username.

CoolJames1610

nice! pls upvote :D @johnstev111

CoolJames1610
NoelB33
CoolJames1610

:D i saw you on my database ;) @NoelBryan

NoelB33
[deleted]

actually the hehe one is me

CoolJames1610

lol XD @Zuhdi28

CoolJames1610

it doesnt matter XD @Zuhdi28

[deleted]

@CoolJames1610 so i can make fake people now?

CoolJames1610

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 !

CoolJames1610

Okay will do :D @Zuhdi28

firefish

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

CoolJames1610

yeah :D @johnstev111

firefish

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

CoolJames1610

yeah its supposed to :D @johnstev111

firefish
[deleted]

wow how do you make it global?

CoolJames1610

using MongoDB - its a database :) @Zuhdi28

[deleted]

@CoolJames1610 wow!
make a tutorial for it

CoolJames1610

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

[deleted]
CoolJames1610

lol XD @Zuhdi28

[deleted]

@CoolJames1610 xdxdxdxdxdxxdxdxd

CoolJames1610

people keep forking it and hacking ugh XD

CoolJames1610
CoolJames1610

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

hg0428

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

CoolJames1610

yes ik i saw ur profile @hg0428

CoolJames1610

@codingCactus heyyy :D