Create a slash command for google search

This commit is contained in:
Stijn De Clercq 2021-08-30 23:21:34 +02:00
parent eb6fc6513c
commit 537111d357
5 changed files with 61 additions and 29 deletions

View file

@ -1,5 +1,6 @@
from data.snipe import Snipe
from discord.ext import commands, ipc
from dislash import InteractionClient
import os
from settings import HOST_IPC
from startup.init_files import check_all
@ -10,6 +11,8 @@ class Didier(commands.Bot):
"""
Main Bot class for Didier
"""
# Reference to interactions client
interactions: InteractionClient
# Dict to store the most recent Snipe info per channel
snipe: Dict[int, Snipe] = {}
@ -29,6 +32,9 @@ class Didier(commands.Bot):
# Remove default help command
self.remove_command("help")
# Create interactions client
self.interactions = InteractionClient(self, test_guilds=[728361030404538488, 880175869841277008])
# Load all extensions
self.init_extensions()