Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayden666z committed May 16, 2021
1 parent daa404c commit aa5d949
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/commands/getName.ts
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 };
3 changes: 2 additions & 1 deletion src/commands/index.ts
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";

1 comment on commit aa5d949

@Jayden666z
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi

Please sign in to comment.