Compare commits
2 Commits
4e60cef97a
...
fb74ae27bd
| Author | SHA1 | Date |
|---|---|---|
|
|
fb74ae27bd | |
|
|
f0ef9ac755 |
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "manifold"
|
name = "manifold"
|
||||||
version = "6.1.0"
|
version = "6.1.1"
|
||||||
authors = ["Lucy Bladen <admin@lbladen.uk>"]
|
authors = ["Lucy Bladen <admin@lbladen.uk>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ async fn register_commands(ctx: ManifoldContext<'_>) -> ManifoldResult<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[poise::command(slash_command, prefix_command, track_edits, aliases("sa"), required_permissions = "MODERATE_MEMBERS")]
|
#[poise::command(slash_command, prefix_command, track_edits, aliases("watch"), required_permissions = "MODERATE_MEMBERS")]
|
||||||
async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to watch"] target: String) -> ManifoldResult<()> {
|
async fn set_activity(ctx: ManifoldContext<'_>, #[rest] #[description="Who to watch"] target: String) -> ManifoldResult<()> {
|
||||||
ctx.serenity_context().set_activity(Activity::watching(&target)).await;
|
ctx.serenity_context().set_activity(Activity::watching(&target)).await;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ pub async fn paginate(ctx: ManifoldContext<'_>, message: ReplyHandle<'_>, pages:
|
||||||
// We defined our button IDs to start with `ctx_id`. If they don't, some other command's
|
// We defined our button IDs to start with `ctx_id`. If they don't, some other command's
|
||||||
// button was pressed
|
// button was pressed
|
||||||
.filter(move |press| press.data.custom_id.starts_with(&ctx_id.to_string()))
|
.filter(move |press| press.data.custom_id.starts_with(&ctx_id.to_string()))
|
||||||
// Timeout when no navigation button has been pressed for 24 hours
|
// Timeout when no navigation button has been pressed for five minutes
|
||||||
.timeout(std::time::Duration::from_secs(300))
|
.timeout(std::time::Duration::from_secs(300))
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ pub trait Pump<V> {
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
pub struct FuelTank {
|
pub struct FuelTank {
|
||||||
pub(crate) source_uri: String,
|
pub source_uri: String,
|
||||||
cache_name: Option<String>,
|
cache_name: Option<String>,
|
||||||
pub(crate) api_key: Option<String>,
|
pub api_key: Option<String>,
|
||||||
cache_mode: TankMode,
|
cache_mode: TankMode,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -102,7 +102,7 @@ impl FuelTank {
|
||||||
serde_json::to_writer(cache, &fuel)?;
|
serde_json::to_writer(cache, &fuel)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Ok(single)
|
Ok(single)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn emit<U: Debug>(&self) -> ManifoldResult<U>
|
pub async fn emit<U: Debug>(&self) -> ManifoldResult<U>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue