-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/edenartlab/bots
- Loading branch information
Showing
13 changed files
with
162 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
DISCORD_TOKEN= | ||
MONGO_URI= | ||
MONGO_DB_NAME= | ||
|
||
EDEN_API_URL= | ||
EDEN_API_KEY= | ||
EDEN_API_SECRET= | ||
EDEN_CHARACTER_ID= | ||
|
||
ALLOWED_GUILDS= | ||
ALLOWED_GUILDS_TEST= | ||
ALLOWED_CHANNELS= | ||
|
||
LOGOS_URL= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from discord.ext import commands | ||
from cogs.CharacterGeneratorCog import CharacterGeneratorCog | ||
|
||
|
||
class EdenCharacterGeneratorCog(CharacterGeneratorCog): | ||
def __init__(self, bot: commands.bot) -> None: | ||
super().__init__(bot) | ||
|
||
|
||
def setup(bot: commands.Bot) -> None: | ||
bot.add_cog(EdenCharacterGeneratorCog(bot)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from discord.ext import commands | ||
from cogs.LogosCharacterCog import LogosCharacterCog | ||
|
||
|
||
class EdenLogosCharacterCog(LogosCharacterCog): | ||
def __init__(self, bot: commands.bot) -> None: | ||
super().__init__(bot) | ||
|
||
|
||
def setup(bot: commands.Bot) -> None: | ||
bot.add_cog(EdenLogosCharacterCog(bot)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
import asyncio | ||
from discord.ext import commands | ||
from cogs.CharacterGeneratorCog import CharacterGeneratorCog | ||
|
||
|
||
class EdenCharacterGeneratorCog(CharacterGeneratorCog): | ||
def __init__(self, bot: commands.bot) -> None: | ||
super().__init__(bot) | ||
# self.bot.loop.create_task(self.run_in_background()) | ||
|
||
# async def run_in_background(self): | ||
# await self.bot.wait_until_ready() | ||
# channel = self.bot.get_channel(1006143747588898849) | ||
# while not self.bot.is_closed(): | ||
# await channel.send("Hello, world!") | ||
# await asyncio.sleep(5) # wait for 5 seconds before sending the next message | ||
|
||
def setup(bot: commands.Bot) -> None: | ||
bot.add_cog(EdenCharacterGeneratorCog(bot)) | ||
bot.add_cog(EdenCharacterGeneratorCog(bot)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.