Submit your sharing themed repl created by your group

Back to all posts
Eval Discord Robot
h
randomlylelo (27)

Eval Discord Robot

The repl: https://repl.it/@ApoorvSingal/MMH

This is the submission of @randomlylelo, @ApoorvSingal, @a5rocks to the Massively Multiplayer Hackathon!

Why did you make a discord bot?

Developing something for the theme: 'sharing' was quite difficult and our team had ran through multiple ideas before setting on making a discord bot.
Our team's thought process was to think of things that are related to sharing but also something that is creative, thoughtful, and could be done in a two day time span.
Because our team wasn't created by amasad (we created ourselves in the discord channel #mmh), we had to figure out many things.
We first ran through our strengths and weaknesses and what coding languages we know, in order to obtain maximum efficency.
We had plans to create an image sharing platform, an account sharing platform, and even an code sharing platform! But we couldn't do them because they would have taken to long.
So we settled on a discord bot because it fit our requirements.

So what does your bot do?

Good question! Currently our bot has commands that allow the user to evaluate code in javascript, python, c-plus-plus, csharp, f#, java, rust, ruby, shell script (sh), swift.
With the bot, you can save the code and share it.

How does the bot work?

The bot uses crosis to speak to the repl.it API

What are some bot commands?

The prefix is ~
The current commands are
eval <optional-name> [```[code language] code```] Evaluates code that you input in [```code```], and saves it if you have something in <optional-name>.
help <optional-command> Help prompt to show what each command does.
share [name-of-previously-saved-eval] Finds a previously saved eval and prints it.
list List all the saved evals
del [name-of-previously-saved-eval] Deletes a saved eval.

Known Issues

If your entered code does not produce any output, the output will remain Please wait..., even if the code has executed successfully


Also note that if you are using the bot, it shares same environment, same files, everything is evaled in one place with no security.
Meaning, that everyone using the bot could see everything, thus nothing is secret! Due to the fact that everyone has access to the repl.

Join the demo bot server:
https://discord.gg/Yfe4rHj

Add the bot to your server:
Invite!

Commentshotnewtop
TheDrone7 (650)

I legit love the idea and implementation but being a fellow competitor, I'm bound to ask a few questions.
1. How does this relate to the theme of "sharing"?
2. This seems like just modified version of @ApoorvSingal 's Larvel.

ApoorvSingal (3)

@TheDrone7 The execution environment is shared among all. Everyone using the bot shares same os and files and has equal acces to the execution place, which is https://repl.it/@ApoorvSingal/Evaller-evals. Nothing is hidden from anyone. It's like a shared computer which gives everyone complete access to everything and this is what makes it different from Larvel.
Larvel has unique environment for every user and is totally secure for saving stuff like api keys.

TheDrone7 (650)

I see @ApoorvSingal nicely done! Of course I've already done all I could do by upvoting this post. But good luck for the judging as well.

amasad (1718)

This is so awesome! Reminds me of this https://repl.it/site/evalbot