wow-token-app-bot

An interactions.py Discord bot for getting and alerting on the WoW Token Price
git clone https://git.emily.sh/wowtoken-app/wow-token-app-bot.git
Log | Files | Refs | README | LICENSE

database.py (339B)


      1 import os
      2 
      3 import aiohttp
      4 from aiodynamo.client import Client
      5 from aiodynamo.credentials import Credentials
      6 from aiodynamo.http.aiohttp import AIOHTTP
      7 
      8 
      9 class Database:
     10     def __init__(self, session: aiohttp.ClientSession):
     11         self.client = Client(
     12             AIOHTTP(session), Credentials.auto(), os.getenv("AWS_REGION")
     13         )