droplet
1.3.0
A multipurpose Discord bot with the hacker in mind
Toggle main menu visibility
Loading...
Searching...
No Matches
LeaderboardCommand.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_view>
12
13
struct
AppContext
;
14
class
DatabaseExecutor
;
15
16
class
LeaderboardCommand
:
public
IGlobalSlashCommand
{
17
public
:
18
static
constexpr
std::string_view
k_name
{
"leaderboard"
};
19
static
constexpr
std::string_view
k_description
{
"Get a Leaderboard of the top 10 hackers!"
};
20
21
explicit
LeaderboardCommand
(
AppContext
& ctx);
22
23
void
on_slashcommand
(
const
dpp::slashcommand_t& event)
override
;
24
25
private
:
26
DatabaseExecutor
& db_;
27
};
IGlobalSlashCommand.hpp
DatabaseExecutor
Definition
DatabaseExecutor.hpp:14
IGlobalSlashCommand
Definition
IGlobalSlashCommand.hpp:6
LeaderboardCommand::LeaderboardCommand
LeaderboardCommand(AppContext &ctx)
Definition
LeaderboardCommand.cpp:27
LeaderboardCommand::k_name
static constexpr std::string_view k_name
Definition
LeaderboardCommand.hpp:18
LeaderboardCommand::on_slashcommand
void on_slashcommand(const dpp::slashcommand_t &event) override
Definition
LeaderboardCommand.cpp:35
LeaderboardCommand::k_description
static constexpr std::string_view k_description
Definition
LeaderboardCommand.hpp:19
AppContext
Definition
AppContext.hpp:12
src
bot_library
commands
leaderboard
LeaderboardCommand.hpp
Generated by
1.18.0