Skip to content

Commit

Permalink
Configure files for railway deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jus-Codin committed Mar 13, 2023
1 parent 90ce3ee commit 8389505
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

DEV_SERVER = discord.Object(id=os.getenv("DEV_SERVER_ID"))
SHROOM_RESET_TIME = datetime.time(hour=0, minute=0, tzinfo=datetime.timezone.utc)
DATABASE_URL = os.getenv("MONGO_URL")

def int_to_ordinal(n: int) -> str:
s = str(n)
Expand Down Expand Up @@ -47,7 +48,7 @@ def get_farm_stats_embed(farm: Farm, server: discord.Guild) -> discord.Embed:

class ShroomBot(commands.Bot):
def __init__(self, *args, **kwargs):
self.shroom_farm = ShroomFarm()
self.shroom_farm = ShroomFarm(DATABASE_URL)
self.owner_ids = (751768586699276342, 759195783597129760)
self._lock = asyncio.Lock()
super().__init__(*args, **kwargs)
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
discord.py>=2.2.0
motor==3.1.1
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.10.10

0 comments on commit 8389505

Please sign in to comment.