Unbewohnte
3 years ago
commit
4f7d6a5e24
8 changed files with 53 additions and 0 deletions
@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo. |
||||
# It is not intended for manual editing. |
||||
version = 3 |
||||
|
||||
[[package]] |
||||
name = "fumosay" |
||||
version = "0.1.0" |
@ -0,0 +1,12 @@
|
||||
[package] |
||||
name = "fumosay" |
||||
version = "0.1.0" |
||||
edition = "2018" |
||||
authors = ["Unbewohnte | Nikolay Kasyanov <https://github.com/Unbewohnte>"] |
||||
description = "Like cowsay, but with soft friends" |
||||
readme = "README.md" |
||||
license = "MIT" |
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
||||
|
||||
[dependencies] |
@ -0,0 +1,9 @@
|
||||
The MIT License (MIT) |
||||
|
||||
Copyright © 2021 Unbewohne | Nikolay Kasyanov |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@ -0,0 +1,6 @@
|
||||
__________ |
||||
( !message ) |
||||
---------- |
||||
() |
||||
() |
||||
\(ᗜˬᗜ)/ |
@ -0,0 +1,8 @@
|
||||
pub const MESSAGE_INDICATOR: &str = "!message"; |
||||
|
||||
pub fn sayify(fumofile: &mut String, message: &str) -> String { |
||||
if fumofile.contains(MESSAGE_INDICATOR) { |
||||
return fumofile.replace(MESSAGE_INDICATOR,message); |
||||
} |
||||
return format!("{}\n{}", fumofile, message); |
||||
} |
Loading…
Reference in new issue