Compare commits

...
3 Commits
Author SHA1 Message Date
marc d9c6e6ce80 fuck update 2023-01-15 19:20:23 +01:00
marc 89c618e7bc useless 2023-01-15 19:20:02 +01:00
marc 09882ef75d os.environ in cog is more flexible 2023-01-15 19:10:34 +01:00
4 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ dev:
docker-compose -f docker-compose.yml up -d --build --force-recreate --remove-orphans dev
prod:
docker-compose -f docker-compose.yml up -d --build --force-recreate --remove-orphans prod
build: update
build:
docker-compose -f docker-compose.yml build prod
push: build
docker-compose -f docker-compose.yml push prod
+2 -2
View File
@@ -8,7 +8,7 @@ import requests
import discord
from discord.ext import commands, tasks
from config.config import ialab_bot_url, cluster
from config.config import cluster
from rich import print
@@ -18,7 +18,7 @@ class IALab(commands.Cog):
def __init__(self, bot: commands.Bot, **kwargs):
"""Initialize the ialab cog."""
super().__init__(**kwargs)
self.url = ialab_bot_url
self.url = os.environ["IALAB_URL"]
self.bot = bot
@commands.command()
-1
View File
@@ -7,7 +7,6 @@ import requests
import discord
from discord.ext import commands, tasks
from config.config import ialab_bot_url, cluster
from rich import print
-1
View File
@@ -15,7 +15,6 @@ link = "https://discordapp.com/oauth2/authorize?&client_id=703347349623144549&sc
prefix = os.environ.get("DISCORD_PREFIX") or "."
masters = [478552571510915072] # , 219949869220102147]
wolfram = wolframalpha.Client(wolfram_alpha_id)
ialab_bot_url = os.environ.get("IALAB_URL") or "https://ialab.marcpartensky.com"
roles = ["@Maître", "@Admin"]