The official telegram bot of La locanda del tech
- Clone the repository or download via zip
- Write to @botfather on telegram to create a new bot
- Set env variables in
.env
file - Run
yarn
to install dependencies - Start the project using
yarn dev
ordocker container run
Please ensure to name the variable as reported below
Variable | Description | Type |
---|---|---|
DEBUG | Debug mode | Boolean |
BOT_TOKEN | The bot token from botfather | String |
For bug reporting and feature requests, please refer to the issues page
To add a new command and contribute to the project, fork this project and open a pull request
- Create a new branch with the name of the feature you want to add
- Create a new file inside
src/handler/command
folder - Submit the pull request
Make sure the file name is the same as the command name
import {bot} from '@/index.ts';
export default () => {
bot.command("<command_name>", async (ctx) => {
// Your code here
});
}
The software is distribuited under the MIT LICENSE. Every distribuition of the code without the credits to the original author is considered illegal