roll
- Rolls the dice to generate a random number between 1-100.
weather
- Given a zip code, get a quick weather status.
nasa_apod
- Displays the Astronomy Picture of the Day from NASA.
A simple Discord bot that offers a collection of "nerdy" commands.
License: MIT License
@bot.command line in each bot_command .py file errors:
2021-01-30T06:13:41.000000+00:00 app[api]: Build started by user [email protected]
2021-01-30T06:14:04.268446+00:00 app[api]: Release v17 created by user [email protected]
2021-01-30T06:14:05.097738+00:00 heroku[worker.1]: State changed from crashed to starting
2021-01-30T06:14:04.268446+00:00 app[api]: Deploy 83c07433 by user [email protected]
2021-01-30T06:14:09.623696+00:00 heroku[worker.1]: Starting process with command `python bot.py`
2021-01-30T06:14:10.325257+00:00 heroku[worker.1]: State changed from starting to up
2021-01-30T06:14:14.000000+00:00 app[api]: Build succeeded
2021-01-30T06:14:14.920087+00:00 heroku[worker.1]: Process exited with status 1
2021-01-30T06:14:14.971470+00:00 heroku[worker.1]: State changed from up to crashed
2021-01-30T06:14:14.796793+00:00 app[worker.1]: Traceback (most recent call last):
2021-01-30T06:14:14.796853+00:00 app[worker.1]: File "/app/bot.py", line 34, in <module>
2021-01-30T06:14:14.797013+00:00 app[worker.1]: import bot_commands
2021-01-30T06:14:14.797014+00:00 app[worker.1]: File "/app/bot_commands/__init__.py", line 3, in <module>
2021-01-30T06:14:14.797157+00:00 app[worker.1]: from . import help
2021-01-30T06:14:14.797193+00:00 app[worker.1]: File "/app/bot_commands/help.py", line 1, in <module>
2021-01-30T06:14:14.797321+00:00 app[worker.1]: @bot.command(pass_context=True)
2021-01-30T06:14:14.797401+00:00 app[worker.1]: NameError: name 'bot' is not defined
Need to investigate possible scoping issues with @bot.command from 'nested' .py files not referencing the bot definition inside bot.py line 17.
Based on, http://whatthefuckshouldimakefordinner.com/, a command that when ran will give an idea of what to make for dinner, along with a URL link for a recipe.
There is no REST API that I could find at a glance, so this may require simply hitting the URL and scraping the appropriate data from the HTML page.
We need to re-add this command as a Cog after the rework of the file structure. It is probably in scope to make minor changes to the output.
The following environment variable exists for access to the NASA API: nasa_api_key
The original command logic can be found here: https://github.com/xdega/nerdbot/blob/v1.0.0/bot.py#L55
The commands currently all live in a monolith bot.py
file.
These commands could probably be factored out into a commands
folder, and then incorporated into the main bot.py
file.
Ideally, this uses an object-oriented approach. Additionally, the help
command ought to be dynamically built.
Currently, we are only using NASA's Astronomy Picture of the Day data point. But the NASA API is quite diverse, and offers lots of interesting data that could be queried by a command.
Here is more information on NASA's API: https://api.nasa.gov/
Add a command to get the current weather. This command already exists in the Version 1.0.0 release. It is probably within scope to slightly modify the weather output message.
The following environment variable exists for open weather map API: open_weather_map_key
The original code can be found here: https://github.com/xdega/nerdbot/blob/v1.0.0/bot.py#L69
Want to have a deployment status badge on the repo readme.
Add a command to return a random joke.
The following API could be useful: https://v2.jokeapi.dev/joke/Any
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.