Skip to content

Commit

Permalink
Re-enable zendesk for now (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
axonasif authored Dec 3, 2024
1 parent 437911e commit 4b3ee8b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
4 changes: 2 additions & 2 deletions glu/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from cachetools import LRUCache
from gidgethub import aiohttp as gh_aiohttp, routing, sansio
from gidgethub.apps import get_installation_access_token, get_jwt
from glu import pylon # , zendesk
from glu import pylon, zendesk
import glu.events as event
from glu.config_loader import config
from glu import runtime_constants
Expand Down Expand Up @@ -65,7 +65,7 @@ async def main():
# await zendesk.init()
app = web.Application()
app.router.add_post("/", github_payloads)
# app.router.add_post("/zendesk", zendesk.webhook_handler)
app.router.add_post("/zendesk", zendesk.webhook_handler)
app.router.add_post("/pylon", pylon.webhook)
app.router.add_get("/pylon/sidebar", pylon.sidebar)
port = int(config["server"].get("port", 8000))
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies = [
"slack-sdk>=3.33.4",
"snscrape>=0.7.0.20230622",
"stripe>=11.3.0",
"zenpy>=2.0.56",
]

# [build-system]
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Description=Glu Bot
After=network.target
[Service]
Environment=HOME='/root'
Environment=HOME='/root' PATH='/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
ExecStartPre=sh -c 'git reset --hard && git pull --ff'
ExecStart=doppler run --mount BotConfig.toml --mount-template BotConfig_tmpl.toml --mount-max-reads 1 -- uv run python3 -m glu
Restart=always
Expand Down
27 changes: 27 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b3ee8b

Please sign in to comment.