Skip to content

Commit

Permalink
Release /slap from early access
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed Sep 13, 2024
1 parent 171f40e commit 5335539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/commands/silly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ silly_command! {

silly_command! {
/// Knock some sense into somebody
#[early_access]
fn slap("Senseless somebody in question") {
bot_message = "OW- HEY- {author} just *slapped* me, what the heck!? {FLOOF_SCARED}";
author_message = "{author} must think they're dreaming or something, they just slapped themselves {FLOOF_OWO}";
Expand Down Expand Up @@ -304,8 +303,8 @@ silly_command! {
}
}

// TODO: add `/kick`
// TODO: add `/lick`
// TODO: add `/kick`?
// TODO: add `/lick`?
// TODO: add `/punch`?
// TODO: add `/stab`?
// TODO: add `/throw`
// TODO: add `/throw`?
5 changes: 2 additions & 3 deletions src/sponsors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.

// TODO: replace "sponsors" idea with Discord monetization when eligible

use anyhow::Result;
use poise::{serenity_prelude::UserId, CreateReply};
use serde::Deserialize;
Expand Down Expand Up @@ -46,7 +48,6 @@ pub(super) struct Sponsor {
pub(super) name: String,
}

// TODO: make this work with more than 100 sponsors
pub(super) async fn get() -> Result<Vec<Sponsor>> {
let tier = "ST_kwDOAiT5_84ABlqV";
let response: Response = octocrab::instance()
Expand All @@ -60,8 +61,6 @@ pub(super) async fn get() -> Result<Vec<Sponsor>> {
Ok(response.data.viewer.sponsors.nodes)
}

// TODO: when Serenity allows it, get auth from user to check GitHub connection
// for sponsorship status
pub(super) async fn has_early_access(ctx: Context<'_>) -> Result<bool> {
if ctx.framework().options().owners.contains(&ctx.author().id)
|| ctx.author().id == UserId::new(993768189924229171 /* queerzi */)
Expand Down

0 comments on commit 5335539

Please sign in to comment.