judge0 / discord-bot Goto Github PK
View Code? Open in Web Editor NEWπ€ Discord bot for interacting with Judge0. Run code from Discord chat.
License: MIT License
π€ Discord bot for interacting with Judge0. Run code from Discord chat.
License: MIT License
Hello!
In using the Discord bot, it's inevitable that a typo happens, causing wrong output, and needing to re-enter code to get the right output.
I primarily use the bot to help with teaching and learning languages with people on Discord, and when there's a typo like this, the chat gets clogged with many Judge0Bot messages.
It would be great to have the ability to somehow:
Reasons you might want to delete is if multiple people try the same thing and you're trying to tidy the chat up, an error happened and you don't want to re-run, or maybe somebody ninja'd you.
I've seen controls for bots on Discord implemented elsewhere by use of Reactions, and I think that's worth considering here for controls. Maybe a re-play π 'button', or have it re-run automatically when the original message is edited (if possible, not familiar with Discord's API)
Thanks!
And thanks for the bot & eval service, both are very useful.
I have done every step with an admin command prompt until the part where it comes to pipenv run start <token>
.
I first did that code and it threw this error:
Traceback (most recent call last):
File "F:\Anaconda\Lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "F:\Anaconda\Lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "F:\Python\JudgeBot\discord-bot\bot\__main__.py", line 23, in <module>
token = sys.argv[1] if len(sys.argv) > 2 else os.environ["BOT_TOKEN"]
File "C:\Users\taysi\.virtualenvs\discord-bot-ZAz7AEEA\lib\os.py", line 678, in __getitem__
raise KeyError(key) from None
KeyError: 'BOT_TOKEN'
Then I went into my environment variables and added BOT_TOKEN with a value of my token. Then I tried pipenv run start
but it threw the same error.
If you find software that doesnβt have a license, that generally means you have no permission from the creators of the software to use, modify, or share the software. Although a code host such as GitHub may allow you to view and fork the code, this does not imply that you are permitted to use, modify, or share the software for any purpose. - choosealicense.com
Please add a license. Currently potential contributors do not have the permission to develop on their own discord bot instance. They have a right to fork the project as per GitHub ToS but they do not have permission to modify it and running their own local instance.
Develop a competitive programming feature where the user can read a problem-solving description, then post its solution and finally, the bot should return test case statuses.
Hello, I was going to use the bot to troll a friend on his server but I'm not understanding how and where have I to put the token of my bot.
Thank you.
Hi @skilldeliver,
I have a feature request that I think might be useful for us to know how many and what submissions have been made with the bot.
I would like to have a simple SQLite database with the single table submissions
that has two attributes: token
and created_at
. The first attribute token
would be a token of a submission that was created and the second attribute would be a date and time of when that submission was created. Both values should be taken from actual submission (to have consistent values).
Let me know what you think.
BR,
Herman
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.