osdc / bots Goto Github PK
View Code? Open in Web Editor NEWBots for OSDC Community Channels.๐ค๐ค
License: MIT License
Bots for OSDC Community Channels.๐ค๐ค
License: MIT License
The bot should respond with something like " Please provide the name of the note " when no arguements are provided with the command /fetchnote
Line 88 in 79b0c01
Hi, If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
Implementation of reminder for OSDC Meetups whose details are updated by the admin through the /addmeetups
command.
Open to discussion.
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Currently, the /addmeetups
and /getmeetups
commands use local json files to store and retrieve data. Using a database such as MongoDB will easen up the process and will also keep data synchronized.
I guess most of the changes need to be made in meetups.go
file in the addmeetups
and getmeetups
functions. We can use this mongo go driver - https://www.mongodb.com/blog/post/mongodb-go-driver-tutorial
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Currently the bot doesn't validate in /nextmeetup
command. The bot should check if the current time is past the scheduled events time, it should respond with no meetup scheduled
.
Line 150 in 63c5127
The comparison should happen after we have fetched from the database and before we start formatting the final message.
If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
Describe the bug
When /save <Title> <Content>
is used if the content doesnt have any link in markdown format i.e [link title](link)
the bot crashes due to index out of range
Expected behavior
The bot should avoid parsing markdown links if the matches are zero
Additional context
Logs : https://del.dog/asadingapp
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Currently the meetup time and reminder schedules are stored in Local
timezone of the host machine.
This creates issues when the bot is deployed on some cloud platform because the Local
time for the host machine may be different.
In meetup.go
, replace instances where Local
time is used, to use Indian time instead.
One such instance:-
Line 98 in e3920af
Hi, If it is the first time that you contribute to the bot:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Leverage any of the pastebin api's available out there and integrate it with our bot.
To paste the logs sent by any member for an encountered issue for convenience of other members in the chat who want to help them out.
Using the API as mentioned in http://ix.io/ and https://paste.rs/ ( any one of em or any other better alternative if available )
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐In contributing.md - > Setting up the bot -> step 1 -> the link to Botfather is broken.
this is the correct link.
/cc @daemon1024
Say, if the user delete's their message which called the bot to do some function, then the bot will also delete it's own message.
We'll put a condition, that if the user delete's their message, we check for the bot's MessageID for the text it displayed for the user , and then delete it.
If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Discord uses some really cool welcome messages, we would love to have them in our bot too.
Just tweak the function where we send the welcome message and randomly select a string of various hard-coded welcome messages.
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐We already have a really nice welcome message. I wanted to add our social links as well as the code of conduct to the message itself so as the new folks get more context about what we are in the welcome message itself.
If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
We currently use else.. if
chains for various commands implemented in the bot. It is fine for the very few commands we have but as we scale to add more commands and more features it will cause a lot of unorganized code and make it harder to debug. So we should implement a handler for that.
The discord.js guide has an amazing explanation of how to implement it.
https://discordjs.guide/command-handling/
If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Hi, If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ.
As of now, we only add the Date and the Title of our OSDC meetups. A new field of Venue needs to be added.
We can change the data schema here - https://github.com/osdc/bots/blob/master/telegram-bot/meetup.go#L33 and further changes need to be made in this /addmeetups
function - https://github.com/osdc/bots/blob/master/telegram-bot/meetup.go#L57
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Describe the bug
The bot reminds about the upcoming meetup 2 hours before the scheduled time. But this functionality seems to be working randomly.
Expected behavior
It should be streamlined and should work as designed.
System Description
Operating System : Heroku
Additional context
Works fine whenever debugged locally till now, so needs deeper debugging.
Line 67 in 79b0c01
Updating the above mentioned repository link with https://github.com/osdc/bots
Hi, If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
and follow Contributing to the bot ๐ฅโจ
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Currently the discord bot doesn't respond to unknown triggers, but it should let the user know about the command being invalid.
https://github.com/osdc/bots/blob/6adc0b2cdd6b3258dfc32376272901e3cb5c1585/discord-bot/bot.js Add an else case. May need to convert the existing if
statements to else if
.
If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow README to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
If it is the first time that you contribute to the bot, follow these steps:
Hey all, I would like to work on this issue.
/newbot
from the options it provides.TELEGRAM_TOKEN
provided by Botfather.git clone https://github.com/<YOUR_USERNAME>/bots.git && cd bots/telegram-bot
go build .
export TELEGRAM_TOKEN=<botfather_token>
./telegram-bot
. The bot would be running at the user handle provided by you.git push origin master
and then open a PR! ๐Sometimes community members send messages with large word count, which can potentially interrupt an ongoing conversation and hamper reading useful messages. A enhancement in bot to handle this potential spam can solve this.
Some of the approaches can be
This needs to be implemented with exception to messages from OSDC Core-Team
The repository should have a more generic README and CONTRIBUTING Guide as it hosts various bots of our community.
The current README and CONTRIBUTING Guide are focused on the telegram-bot so it should be moved into telegram-bot
folder.
Describe the bug
There are lots of edge cases and instances where bot crashes due to some unexpected syntax or error.
Example : Unexpected syntax in /addmeetup
Expected behavior
The bot shouldn't crash instead it should respond with something like " Unexpected behaviour, please try again "
** Additional Context **
We are using log.Fatal
/ log.Fatalln
when an error occurs. This causes the program to call os.exit(1)
which is an undesirable behaviour.
Instead we should log.Print
the errors as well as a bot response for the same.
ESLint performs automated scans of your JavaScript files for common syntax and style errors.
https://eslint.org/docs/user-guide/getting-started
Prettier scans your files for style issues and automatically reformats your code to ensure consistent rules are being followed for indentation, spacing, semicolons, single quotes vs double quotes, etc.
https://prettier.io/docs/en/install.html
These will help us streamline our codebase as well as the review process.
Hi, If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ.
The bot sends a " I don't know that command " message when it encounters an unknown command. The bot should delete it's message after a few seconds when the user has perceived it.
Hi, If it is the first time that you contribute to the bot, follow these steps:
Write a comment in this issue thread to let other possible contributors know that you are working on this bug. For eg : Hey all, I would like to work on this issue.
, follow Contributing to the bot ๐ฅโจ and feel free to ask anything related to this issue โ๏ธ
Describe the bug
Bot is not sending the greeeting message whenever a new user joins the server
Expected behavior
Bot should greet the person with the greeting message...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.