droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
SetNotificationCommand.hpp
Go to the documentation of this file.
1
/*
2
* (c) Copyright erarnitox.de - All rights reserved
3
* Author: Erarnitox <david@erarnitox.de>
4
*
5
* License: MIT License
6
*/
7
8
#pragma once
9
10
#include <
IGlobalSlashCommand.hpp
>
11
#include <
IReady.hpp
>
12
#include <string_view>
13
14
struct
AppContext
;
15
class
DatabaseExecutor
;
16
class
YoutubeNotificationService
;
17
18
class
SetNotificationCommand
:
public
IGlobalSlashCommand
,
public
IReady
{
19
public
:
20
static
constexpr
std::string_view
k_name
{
"youtube_uploads"
};
21
static
constexpr
std::string_view
k_description
{
"Get notifications about youtube uploads to discord (Admin only!)"
};
22
23
explicit
SetNotificationCommand
(
AppContext
& ctx);
24
25
void
on_slashcommand
(
const
dpp::slashcommand_t& event)
override
;
26
void
on_ready
(
const
dpp::ready_t& event)
override
;
27
28
private
:
29
dpp::cluster& discord_;
30
DatabaseExecutor
& db_;
31
YoutubeNotificationService
& youtube_;
32
};
IGlobalSlashCommand.hpp
IReady.hpp
DatabaseExecutor
Definition
DatabaseExecutor.hpp:14
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
IReady
Definition
IReady.hpp:6
SetNotificationCommand::SetNotificationCommand
SetNotificationCommand(AppContext &ctx)
Definition
SetNotificationCommand.cpp:19
SetNotificationCommand::on_slashcommand
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition
SetNotificationCommand.cpp:30
SetNotificationCommand::k_description
static constexpr std::string_view k_description
Definition
SetNotificationCommand.hpp:21
SetNotificationCommand::k_name
static constexpr std::string_view k_name
Definition
SetNotificationCommand.hpp:20
SetNotificationCommand::on_ready
void on_ready(const dpp::ready_t &event) override
Definition
SetNotificationCommand.cpp:68
YoutubeNotificationService
Definition
YoutubeNotificationService.hpp:17
AppContext
Definition
AppContext.hpp:12
src
bot_library
commands
notification
SetNotificationCommand.hpp
Generated by
1.18.0