droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
ReminderCommand.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 <string>
12
#include <string_view>
13
14
struct
AppContext
;
15
16
class
ReminderCommand
:
public
IGlobalSlashCommand
{
17
public
:
18
static
constexpr
std::string_view
k_name
{
"reminder"
};
19
static
constexpr
std::string_view
k_description
{
"Set a reminder for yourself!"
};
20
21
explicit
ReminderCommand
(
AppContext
& ctx);
22
23
void
on_slashcommand
(
const
dpp::slashcommand_t& event)
override
;
24
25
private
:
26
void
start_reminder(
size_t
channel_id,
27
dpp::snowflake user_id,
28
const
std::string& user_mention,
29
const
std::string& message,
30
size_t
timestep_sec);
31
dpp::cluster& discord_;
32
};
IGlobalSlashCommand.hpp
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
ReminderCommand::on_slashcommand
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition
ReminderCommand.cpp:61
ReminderCommand::k_name
static constexpr std::string_view k_name
Definition
ReminderCommand.hpp:18
ReminderCommand::ReminderCommand
ReminderCommand(AppContext &ctx)
Definition
ReminderCommand.cpp:48
ReminderCommand::k_description
static constexpr std::string_view k_description
Definition
ReminderCommand.hpp:19
AppContext
Definition
AppContext.hpp:12
src
bot_library
commands
reminder
ReminderCommand.hpp
Generated by
1.18.0