mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Create a slash command for google search
This commit is contained in:
parent
eb6fc6513c
commit
537111d357
5 changed files with 61 additions and 29 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue