Compare commits
6
Commits
e1be3218b3
...
v1.4.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb3eb4b09b | ||
|
|
c39e2c137b | ||
|
|
eedaf1c71f | ||
|
|
70e4a84db3 | ||
|
|
443b92dfd3 | ||
|
|
094a22f5e7 |
@@ -20,7 +20,4 @@ COPY database_setup database_setup/
|
|||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
# Expose to outside of container
|
|
||||||
EXPOSE 5000
|
|
||||||
|
|
||||||
CMD ["python3", "-u", "./main.py"]
|
CMD ["python3", "-u", "./main.py"]
|
||||||
@@ -1,5 +1,9 @@
|
|||||||
# Dakiny Bot
|
# Dakiny Bot
|
||||||
|
|
||||||
Bot assumes that it always did the step before it. If the step before an action didn't happen, behavior is undefined.
|
Dakiny clan's own discord bot!
|
||||||
|
|
||||||
|
|
||||||
|
### Assumptions
|
||||||
|
- For Elections: Bot assumes that it always did the step before it. If the step before an action didn't happen, behavior is undefined.
|
||||||
Object creation in the middle of a cycle is only there for restarting the bot. All relevant information should already
|
Object creation in the middle of a cycle is only there for restarting the bot. All relevant information should already
|
||||||
exist in the database.
|
exist in the database.
|
||||||
@@ -33,9 +33,8 @@ class ClanMessages(commands.Cog, name="Clan Messages"):
|
|||||||
"""
|
"""
|
||||||
Triggers when the bot is in ready state. Adds the webhook listener to FastAPI and serves.
|
Triggers when the bot is in ready state. Adds the webhook listener to FastAPI and serves.
|
||||||
"""
|
"""
|
||||||
await self.update_messages()
|
|
||||||
app.add_api_route("/messages/", self.update_messages, methods=["POST"])
|
app.add_api_route("/messages/", self.update_messages, methods=["POST"])
|
||||||
config = uvicorn.Config(app=app, port=5000, log_level="info")
|
config = uvicorn.Config(app=app, host="0.0.0.0", port=5000, log_level="info")
|
||||||
server = uvicorn.Server(config)
|
server = uvicorn.Server(config)
|
||||||
await server.serve()
|
await server.serve()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user