This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
daa404c
commit aa5d949
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { author, homepage, name, version } from "../../package.json"; | ||
|
||
const debug = require("debug")("bot:about_command"); | ||
|
||
const getName = () => (ctx: any) => { | ||
|
||
const name= ctx.from.last_name ? `${ctx.from.first_name} ${ctx.from.last_name}` : ctx.from.first_name; | ||
|
||
const message = `*${name}`; | ||
debug(`Triggered "about" command with message \n${message}`); | ||
|
||
ctx.reply(message); | ||
}; | ||
|
||
export { getName }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from "./about"; | ||
export * from "./sendkey"; | ||
export * from "./test"; | ||
|
||
export * from "./getName"; | ||
|
aa5d949
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi