Skip to content

Commit

Permalink
0.10 - The UI update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythonic-Rainbow committed Jul 3, 2021
1 parent 4c6add6 commit f42abd3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
18 changes: 13 additions & 5 deletions DimBot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
intent.guilds = intent.members = intent.messages = intent.reactions = intent.voice_states = intent.typing = True
intent.presences = True
bot = missile.Bot(intents=intent)
nickname = f"DimBot {'S ' if dimsecret.debug else ''}| 0.9.28"
nickname = f"DimBot {'S ' if dimsecret.debug else ''}| 0.10"
logger = missile.get_logger('DimBot')
sponsor_txt = '世界の未来はあなたの手の中にあります <https://streamlabs.com/pythonic_rainbow/tip> <https://www.patreon.com/ChingDim>'
reborn_channel = None
Expand Down Expand Up @@ -449,10 +449,18 @@ async def modrole(ctx: commands.Context, role: discord.Role):
async def changelog(ctx):
"""Shows the latest release notes of DimBot"""
await ctx.reply("""
**__0.9.28 (Jul 3, 2021 2:45AM GMT+8)__**\n
The entire `quote` command group as well as `xp leaderboard` now rock a new UI!!!
`quote i <id>` has been changed to `quote <id>`.
`quote r` is removed as its obsolete with the new UI.
**__0.10 (Jul 3, 2021 2:45PM GMT+8)__ The UI update**
After 2 months of somewhat relaxing development, I am pleased to announce v0.10, with 29 modified files, 2236 new lines and 1068 deleted lines.
The development began with a database interconnect rewrite, which not only supports concurrent access,
but also an easier way to code SQL.
Followed by the addition of `d.xp` commands, I've stored over 1000 entries of xp records, before the 128BB incident.
Next, the UI of the entire help & quote commands, as well as `xp lb` are redesigned to be menu-driven, allowing users to
access the commands in a much easier fashion.
In the near future, I am focusing on resolving GitHub issues, which are basically features to be added. A major goal is
to make Aegis much more configurable.
""")


Expand Down
15 changes: 0 additions & 15 deletions bruckserver/pythania.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,25 +104,10 @@ async def base64decode(request):
return web.Response(body=decoded)
raise web.HTTPBadRequest(reason='Missing base64-encoded parameter')

@routes.post('/ghub-webhook')
async def github_webhook(request: web.Request):
payload = await request.json()
if not payload['repository']['private']:
async with self.bot.session.post(self.github_webhook, json=payload, headers=request.headers) as r:
self.logger.info(f'Relayed GitHub webhook. Response: {r.status}')
return web.Response(status=r.status, headers=r.headers, body=await r.text())

app = web.Application()
app.add_routes(routes)
runner = web.AppRunner(app)
await runner.setup()
site = web.TCPSite(runner, '0.0.0.0', 80)
await site.start()
self.logger.info('Site now running')

# Fetches the webhook for #job
await self.bot.wait_until_ready()
for webhook in await self.bot.get_channel(435009339632123904).webhooks():
if webhook.id == 476326171655667722:
self.github_webhook = webhook.url + '/github'
break

0 comments on commit f42abd3

Please sign in to comment.