diff --git a/README.md b/README.md new file mode 100644 index 0000000..fcae0b0 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Dask Bot diff --git a/task_bot.py b/task_bot.py index 1ddc20d..9cf29b5 100644 --- a/task_bot.py +++ b/task_bot.py @@ -3,7 +3,7 @@ import discord from discord.ext import commands from weather import OpenWeatherMapAPIClient -DISCORD_TOKEN = os.getenv('MTQ4MDkxODI5Mzk5MTc4ODYzNQ.GQ4P7l.uqYM-awr8zAp6eun9iJr0ziDhscv3XiByqSMpw') +DISCORD_TOKEN = os.getenv("DISCORD_TOKEN") WEATHER_TOKEN = os.getenv("WEATHER_TOKEN") weather_client = OpenWeatherMapAPIClient(WEATHER_TOKEN, "MyDiscordWeatherBot") @@ -37,7 +37,7 @@ async def current_weather(interaction: discord.Interaction, location: str): icon = current_weather['weather'][0]['icon'] embed = discord.Embed( title=f"Current weather in {location}", - description=f"Temperature: {temp}°C\n Sky: {weather_condition}", + description=f"Temperature: {temp}°C\nSky: {weather_condition}", ) embed.set_thumbnail(url=f"https://openweathermap.org/img/wn/{icon}.png") @@ -63,4 +63,4 @@ async def on_ready(): for command in commands: print(f"- {command.name}") -bot.run(DISCORD_TOKEN) \ No newline at end of file +bot.run(DISCORD_TOKEN)