Overview
Comment: | add start message |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8db3dfecf8effb878b4e73583ab4657c |
User & Date: | arcade on 2020-11-24 09:41:13.516 |
Other Links: | manifest | tags |
Context
2020-11-25
| ||
16:57 | 0.1.6: switch to connection acquiring, expand error messages check-in: 3d3fde1b28 user: arcade tags: trunk | |
2020-11-24
| ||
09:41 | add start message check-in: 8db3dfecf8 user: arcade tags: trunk | |
2020-11-20
| ||
16:23 | force cast to utilize index check-in: 84130ab6bf user: arcade tags: trunk | |
Changes
Modified src/main.rs
from [b8785d39ca]
to [69a051652f].
︙ | ︙ | |||
242 243 244 245 246 247 248 | let mut words = data.split_whitespace(); let cmd = words.next().unwrap(); match cmd { // start "/start" => { | | | 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | let mut words = data.split_whitespace(); let cmd = words.next().unwrap(); match cmd { // start "/start" => { reply.push("We are open\\. Probably\\. Visit [channel](https://t.me/rsstg_bot_help/3) for details\\.".to_string()); }, // list "/list" => { reply.push("Channels:".to_string()); let mut rows = sqlx::query("select source_id, username, enabled, url, iv_hash from rsstg_source left join rsstg_channel using (channel_id) where owner = $1 order by source_id") |
︙ | ︙ | |||
404 405 406 407 408 409 410 | // check "/check" => { &core.check(&words.next().unwrap().parse::<i32>()?, None).await?; }, | | | 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | // check "/check" => { &core.check(&words.next().unwrap().parse::<i32>()?, None).await?; }, // clean "/clean" => { if core.owner != i64::from(message.from.id) { reply.push("Reserved for testing\\.".to_string()); } else { let source_id = words.next().unwrap().parse::<i32>().unwrap_or(0); &core.clean(source_id).await?; |
︙ | ︙ |