Setup hooks for interactions-wait-for@1.0.4

main
sgoudham 3 years ago
parent 6ab06a2368
commit 642b1f5d75
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -1,8 +1,10 @@
import os import os
from pathlib import Path from pathlib import Path
import interactions
from dotenv import load_dotenv from dotenv import load_dotenv
from interactions import Client, Intents, ClientPresence, PresenceActivity, PresenceActivityType from interactions import Client, Intents, ClientPresence, PresenceActivity, PresenceActivityType
from interactions.ext import wait_for
from exclamation_mark_charity.constants import TWITCH_CHANNEL from exclamation_mark_charity.constants import TWITCH_CHANNEL
from exclamation_mark_charity.logger_factory import LoggerFactory from exclamation_mark_charity.logger_factory import LoggerFactory
@ -29,11 +31,16 @@ def main():
type=PresenceActivityType.STREAMING, type=PresenceActivityType.STREAMING,
url=TWITCH_CHANNEL url=TWITCH_CHANNEL
) )
] ],
status=interactions.StatusType.ONLINE
) )
) )
logger.debug("Finished Registering Client!") logger.debug("Finished Registering Client!")
# Apply hooks to the class - wait_for(), wait_for_component()
# setup(bot, add_method=True)
wait_for.setup(bot, add_method=True)
# Load cogs # Load cogs
logger.debug("Loading Cogs...") logger.debug("Loading Cogs...")
for folder in os.listdir("exclamation_mark_charity/modules"): for folder in os.listdir("exclamation_mark_charity/modules"):

Loading…
Cancel
Save