Share your repls and programming experiences

← Back to all posts
Do you know the Muffin Man?
Muffinlavania (1395)

Well I do

Welcome to the Muffin Chat!
This is a re-upload, and unlike other re-uploads this one is actually for a reason. This little bot used to be just a few games and a way to blow your fake money, but now there are 30+ commands! You can just mess around with this bot and tell it random things, but everything must start with need. For example, saying 'need fortnite' will make your cringe. Here are most of the big commands:

Any people out there that know Dank Memer chat?

Important Note: Fork this project to save your files and events!(If you want) This bot is capable of saving events with 'need todo', but you must fork the project first. This way your money and other things work properly

Say 'need help' to get to know some of the commands! So far there is:

Help: say need help for help on the commands

4 games: Say need game to play these! These games are not only fun but will give you some money

Gambling: Everyone's favorite time of day. Saying need gamble,you can do some slots, flip a coin, or roll a dice`

Convert: need convert can convert your inches to centimeters, or meters to feet!

Rickroll: You should already know what need rickroll does

Time/Calendar: saying need time will print out the time! This is in UTC, time since the epoch(Whatever that means) need date will print out this month's calendar!

Todo: Save your todo-list with need todo! When you say need todo, after creating your tasks you can view your todo-list by saying need tasks! I might add something like reminders later on i think

Google: Say need google to bring up the totally original Google! 1 search guaranteed!

Saving: Everytime you say need save IT will save your current money into your own file! Also it will automatically load your safe file, so you can get lots of money i guess.This DOES NOT work if you open this project in a new tab, your username will always be five-nine

Python: saying need python will result in the bot giving you one line of input to code. Great.

Don't forget to give this bot some memes

Added things

Google: A 100% accurate searching program!
Rickroll: In the Muffin Hall of fame
Better help screen: Colors make the world go round
Quest: Go on a mini quest with need quest
States: Ever forget your united states of America? Well no longer!
Elements: Periodic table go brrrrrr

Things to come

A chat system: saying 'need chat' will let you chat with the bot for a minute

Also please report any bugs!, and if you want to see any commands tell me!

Commentshotnewtop
elburg (11)

who did you expect?

holylemonaple (1)

um
' ' '
Traceback (most recent call last):
File "main.py", line 4, in <module>
from r import *
File "/home/runner/osql5emn17g/r.py", line 156
else:
^
SyntaxError: invalid syntax
' ' '

RahulChoubey1 (61)

Do you actually save the monies or is it a placebo? You could use the DB or a separate file

Muffinlavania (1395)

@RahulChoubey1 i do, i use the .dat files you were talking about. But sadly they dont really work, so if you want to use this bot to its full i would fork the project. Then you could actually schedule tasks, work, and save your moneyyyyy

RahulChoubey1 (61)

@Muffinlavania You have to use a .dat translator

Muffinlavania (1395)

@RahulChoubey1 no im saying the save files work, but you cannot actually save data, upon reload your safe files will disappear. So only if you fork it will the save files be permanent

Muffinlavania (1395)

@RahulChoubey1 umm yea? Im saying only owners can add files, and technically save files are files. So save files are only temporary unless you fork the project

maxyang (138)

Is flip coin jinxed? I literally played 8 times and didn't win ONCE

Muffinlavania (1395)

@maxyang Lolll no its a random 50 50 chance

RahulChoubey1 (61)

@maxyang One in 256. You must not be very lucky today.

maxyang (138)

@RahulChoubey1 I must be VERY unlucky... O BTW it's 12 now, so 1 in 4096

maxyang (138)

@RahulChoubey1 LMAO I had REALLY bad luck that time, today first time I flipped a coin I won.

RahulChoubey1 (61)

So many easter eggs.
I need
Need what?
need need
No, I need muffin
need creeper cause why not
need gf for BIG CHUNGUS
Don't want that mushy nonsense? I need squid oh look! Main is red! need sample text I guess

RahulChoubey1 (61)

maybe put all Uno code in uno.py, maze into maze.py, etc.

Muffinlavania (1395)

@RahulChoubey1 yea i tried this, but for one main reason i cant, that is that everytime it has to reset all the varibles and stuff, so you can play again. I tried to make that in another files, but i tried everyway of updating the variables so they reset, but i gave up and just put it in main.py

RahulChoubey1 (61)

What's with the .dat files? What are you storing?

Muffinlavania (1395)

@RahulChoubey1 data? Thats what it means. Also i thought they worked but they dont :(

RahulChoubey1 (61)

your uno is very glitchy

Muffinlavania (1395)

@RahulChoubey1 How? I actually just played it and it seems pretty fine

RahulChoubey1 (61)

@Muffinlavania It was at the beginning of the game. I guess I spammed enter too much

RahulChoubey1 (61)

but there was this glitch which I am unable to explain

Muffinlavania (1395)

@RahulChoubey1 if you spam enter then it should just keep saying Invalid Card!

RahulChoubey1 (61)

@Muffinlavania It was like… it cumulated all my previous entries, cramming them into a string like 9999993333(although I'm not sure what digits they were)

RahulChoubey1 (61)

How to give him a meme?

RahulChoubey1 (61)

Command idea: give meme!

Muffinlavania (1395)

@RahulChoubey1 say need then your meme. Im going to add stuff for need number one and need all star

Muffinlavania (1395)

@RahulChoubey1 say need meme
(It doesnt actually work, but maybe ill make it something that kinda works)

RahulChoubey1 (61)

@Muffinlavania Don't forget need sample text!

Muffinlavania (1395)

@RahulChoubey1 what do you mean, what do you want that to be

RahulChoubey1 (61)

@Muffinlavania Corrupt the screen slowly and then quicker and quicker with "sample text" and then refresh everything.

Muffinlavania (1395)

@RahulChoubey1 ummm maybe i will add that? I dont really know how i would add that, or why 'sample text' is the command for it, but i guess i will give it a shot

RahulChoubey1 (61)

@Muffinlavania Because the screen was taken over by sample text

ZDev1 (694)

I like the need python command

you can simply exec(userCode)
Muffinlavania (1395)

@ZDev1 yea thats what i did, but i jazzed it up a bit.

i used eval(usercode)

ZDev1 (694)

what the heck how did you know my name

Muffinlavania (1395)

@ZDev1 Hmmmmmmmm
Well could this be your ip? 696969696969696969
Just kidding, its using this os.environ['REPL_OWNER']
First import os then just print that out and you will have their username!

firefish (783)

@Muffinlavania I made a comment over there but, you weren't ping ed for some reason

firefish (783)

@Muffinlavania Gah? My IP is <u8>.<u8>.<u8>.<u8>. Try catch me now!

ZDev1 (694)

@firefish my IP is
0.0.0.0 allow access from anywhere ;)

firefish (783)

@ZDev1 Yeah to be honest I think everybody's IP is 127.0.0.1

Muffinlavania (1395)

@firefish Its fineeeeeeeee everyone loves abusing the need python thing, and unless it actually changes stuff for everyone, im fine with it

firefish (783)

@Muffinlavania Well it's theoretically impossible to make changes to everybody's, unless you do it, because everybody without write access creates their own "temporary" container to do stuff on. If however you make changes via the IDE, it moves your "temporary" container over to your own account, in which case it is no longer "temporary".
You were taking advantage of the "temporary" container in the introduction, taking the EnvVar REPL_OWNER, which was changed to firefish (for me it was) because of the "temporariness". (@ZDev1 wanted to know how it was done, so here)

Muffinlavania (1395)

@firefish yeeeee just like CTRL+I, or the inspect tool for some type of computer idk

firefish (783)

@Muffinlavania And for this very reason, is why the dat files don't save upon refresh. Would suggest taking a look at repl.it db, where each user has their own dictionary in the db containing every thing the dat file would contain. I could help with this, especially for hacking the db, just maybe not so much in python.... I'm more of a nodejs guy

Muffinlavania (1395)

@firefish The .dat files dont save?? I didnt know that hmmmmmmmmm

firefish (783)

@Muffinlavania They save for you because you have write access, but for us it's like inspect element

firefish (783)

@Muffinlavania If you invite me I might be able to help, without making a pig's breakfast of it, only thing is i've forgotten python

Reestrelax (2)

This is fun, spent a lot of time playing this and had lots of enjoyment. Also, how did you add color to your text? Mine only works in editor.

Muffinlavania (1395)

@Reestrelax You can use escape codes! I just keep them in a repl so i can copy paste them, so here they are

black = "\033[0;30m"  
red = "\033[0;31m"  
green = "\033[0;32m"
yellow = "\033[0;33m"  
blue = "\033[0;34m"  
magenta = "\033[0;35m"  
cyan = "\033[0;36m"  
white = "\033[0;37m"  
gray = "\033[0;90m"  
bright_red = "\033[0;91m"  
bright_green = "\033[0;92m"  
bright_yellow = "\033[0;93m"  
bright_blue = "\033[0;94m"  
bright_magenta = "\033[0;95m"  
bright_cyan = "\033[0;96m"  
bright_white = "\033[0;97m" 
bold='\033[01m' 
reset='\033[0m'

So if you just pop that at the top of the code, you can just say something like

print(blue+"This is blue!")
print("Hi")

Also something to note, after each print statement it will not reset color. SO the above example will have a blue "Hi" as well. So just say print(blue+"Blue thing"+reset) to reset the color

Reestrelax (2)

@Muffinlavania
Thanks my man, I am working on something right now, I will add your name onto my special thanks list (:

Reestrelax (2)

@Muffinlavania
Also, how do you exactly use getkey?

Muffinlavania (1395)

@Reestrelax Umm
from getkey import getkey,keys
the just define a variable as getkey(), its just like input except it basically hits enter for you
(Also to detect up, down, left, and right arrows you have to use keys.UP or keys.DOWN or keys.RIGHT or keys.LEFT, everything else you can say stuff like

key2=getkey()
if key2=='a':
    print("You pressed a")
Muffinlavania (1395)

@CoolGuy27 you cant import turtle with normal python?

CoolGuy27 (55)

@Muffinlavania i thot u could

import turtle
idrgplayer (117)

this is sick dood. I do know the muffin man.
|
|I found a bug. One time I searched stuff up running commands but nothing was responding. :/ idk why.

Muffinlavania (1395)

@idrgplayer umm that has never happened to me?

idrgplayer (117)

@Muffinlavania hm strange idk must have been a repl problem.

Muffinlavania (1395)

@idrgplayer yea, maybe it just lie stopped on its own or something

Muffinlavania (1395)

@idrgplayer sorry my k key is broken like a lot

Like here im just going to hit k+Space
k k k k k k k k k k k k k k k k k k k k k k k

firefish (783)

@Muffinlavania o then, have a wonderful day without that ey

CoolGuy27 (55)

@Muffinlavania Wow, you took time to implement your uno, tic tac toe,a maze AND rock paper scissors!!!!!???

Muffinlavania (1395)

@CoolGuy27 heheehehe And even......

Rickrolling

CoolGuy27 (55)

@Muffinlavania lol (how do you do markdown signatures?)

Muffinlavania (1395)

@CoolGuy27 Hmmm

Seems

Like

I

Can


Lol just kidding, to learn the markdown thingies, just go to this repl https://repl.it/talk/learn/A-Quick-Guide-to-Replit-Talk-Markdown/7448

CoolGuy27 (55)

@Muffinlavania it has a 404 error right now, that's why i asked

Muffinlavania (1395)

@CoolGuy27 They must have deleted it or something? Idk. But this is how you do stuff
**This is Bold**
This is Bold
*This is italics*
This is italics
***This is bold+italics***
This is bold+italics
# This is a big header

This is a big header

## This is a smaller header

This is a smaller header

### This is even smaller

This is even smaller

`This is the code like thing`

This is the code like thing

Muffinlavania (1395)

@CoolGuy27 ok i that should be an Ok-ish guide, i got to go to school tho

CoolGuy27 (55)

@Muffinlavania

cool

how about the signature?

Muffinlavania (1395)

@CoolGuy27

This? This is done with a greater than sign >

Kirit0 (23)

Also idk if its a bug or not, but failure when typing need money. But amazing program. I shall upvote

Muffinlavania (1395)

@Kirit0 really? Ill check that out, i think i might have forgotten to do str(money), but did you do need creeper or need minecraft?

Kirit0 (23)

i did do need ceeper. ill do need minecraft now. @Muffinlavania

Kirit0 (23)

syntax error in line 1630 :(

Muffinlavania (1395)

@Kirit0 yea im editing it right now, sorry ill fix it up

Muffinlavania (1395)

@Kirit0 should work, and now you have to do 'need minecraft'

Muffinlavania (1395)

@JBYT27 Thanks! Do you want to see any other commands in this little bot?

Muffinlavania (1395)

@JBYT27 lol ok then im adding need rickroll

And omg my k key is messed up a lot

JBYT27 (510)

lololololol, that would be AWESOME! @Muffinlavania

Muffinlavania (1395)

@JBYT27 For now im just going to print the lyrics, but later when i can actually download sound files i will add the song

JBYT27 (510)

YES! That would literally be SICK! XD @Muffinlavania

Muffinlavania (1395)

@JBYT27 Never gonna let you downnn

JBYT27 (510)

got to go to school, brb later @Muffinlavania

AmazingMech2418 (941)

need python
os.system("bash")
cat > hehehe.py
> import os
> os.system("bash")
cat hehehe.py > main.py
Muffinlavania (1395)

@AmazingMech2418 bruh stop abusing my need python thing

Muffinlavania (1395)

@AmazingMech2418 Also the file doesnt show on the main repl, soooooooooo

AmazingMech2418 (941)

@Muffinlavania Yeah. LOL! But you can still reprogram the entire thing just within the program. LOL!

AmazingMech2418 (941)

@Muffinlavania That's why you don't use eval or exec. LOL! They allow arbitrary code execution and you can get a shell with it. LOL!

Muffinlavania (1395)

@AmazingMech2418 eh its fine. It doesnt impact the code for the actual repl, it just does it temporarily