From 3c3b0c1369164f765d7ce53e5d7ba2927fc0bb8b Mon Sep 17 00:00:00 2001 From: oa1 <72599189+oa01@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:20:33 +0200 Subject: [PATCH] chore(readme) --- README.md | 33 ++++++++++++++++++++++++--------- cogs/Wetter.py | 2 +- main.py | 3 +-- 3 files changed, 26 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 8d19e34..efb03a5 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,28 @@ # ABV-Bot -## About -this is the official discord bot of the ABV using pycord which is a fork of discord.py -## Installation -Currently Development has been (and will be) inactive for a few Months due to personal Stuff. -The Project is stable, its not recommended to add this bot to a server, because we did not test the bot in-Depth for bugs, if you still want to use our bot, please open a issue with the tag (invite request) -## Setup - -## Using our cogs in your bot + + + +## Setup + +1. Create an empty servers.json file in the root directory of the bot. You can add new Minecraft servers to be monitored with the following syntax. The Message ID needs to be any message of the bot +``` +{ +"Servers":{ + "Server Name": { + "ip": "mc.example.net", + "channel_id": ChannelID, + "message_id": MessageID + } +} +} +``` +2. create a .env file with the token `TOKEN = INSERT_TOKEN_HERE` + +## Using our cogs in your bot + We appreciate it if you use our cogs in your project but please make sure you follow the GPL-3.0 License and give credits in your code . -## How to give Credits + +## How to give Credits Just use the following term : ```This Bot was created by the ABV(https://github.com/TPP-01) licensed under GPL-3.0 License ``` @@ -19,4 +33,5 @@ or if your use our cog 1 to 1 in your project/bot ```This Cog is from the ABV-BOT by ABV(https://github.com/TPP-01)``` ## Credits + the help_cmd.py is from [@nonchris](https://gist.github.com/nonchris/1c7060a14a9d94e7929aa2ef14c41bc2) diff --git a/cogs/Wetter.py b/cogs/Wetter.py index 22e1528..f3d85d8 100644 --- a/cogs/Wetter.py +++ b/cogs/Wetter.py @@ -21,7 +21,7 @@ async def wetter(ctx, Ort): embed.add_field(name=f"Aktuelle Temperatur in {Ort}", value=weather_var["temp"], inline=False) embed.add_field(name=f"Aktuelle Luftfeuchtigkeit in {Ort}", value=hum_var, inline=False) embed.add_field(name="Aktuelles Wetter (zusammengefasst)", value=w.detailed_status, inline=True) - embed.set_footer(text="made by blockcrafter#5759") + embed.set_footer(text="balls") await ctx.respond(embed=embed) diff --git a/main.py b/main.py index dcc7102..036eb48 100644 --- a/main.py +++ b/main.py @@ -22,8 +22,7 @@ def get_prefix(bot, message): #cogs to use -initial_extensions = ["cogs.Fun", "cogs.BotOwner", "cogs.Admin", "cogs.ReactionRole", "cogs.minecraft", "cogs.sound", "cogs.memes"] -#initial_extensions = ["cogs.MainModule"] +initial_extensions = ["cogs.MainModule", "cogs.Fun", "cogs.BotOwner", "cogs.Admin", "cogs.minecraft", "cogs.sound", "cogs.memes", "cogs.Wetter"] bot = commands.Bot(command_prefix=get_prefix, description="The official ABV bot", intents=intents, help_command=None) if __name__ == '__main__':