-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrap a channel and find the Roll number from the message and username with tag and put that in the google spreadsheet if not already present #9
Comments
I would like to work on this issue. |
@Darshilp326 Ok I am assigning it to you. You can start working on it. |
Make a new command for this task in new file. |
One possibility to solve this. @Darshilp326
|
@piyushchauhan For 2nd step we need to fetch messages which will lead to older problem only. |
Most probably there won't be more than 100 msgs sent by a user in that channel. So that will work practically. Anyways later on we can add a moderation to the channel that if the person who messaged is in the channel is already in the spreadsheet database then we can delete that message. So that it won't cause much over head in future. |
@piyushchauhan there is no inbuilt function for finding a specific user's message. We need to fetch all messages of that channel and then find manually by checking that message's author id and our user's id. |
@piyushchauhan one solution can be for every message we need to check if it contains roll no. But for this we don't need command !scrap-rolls. |
Refer this https://support.discord.com/hc/en-us/articles/115000468588 |
Have you made the Regex for roll number? |
^\d{4}[a-z]{2,}\d{1,3}$ regex |
Message collector will work ! Actually without that also if we check every message then it is similar to message collector only. |
|
Ok i will take this but i have assumed that in one message we will be getting only one roll number |
For example see the messages in
#intro
channel of Cassiopeia server at https://discord.gg/NYHj58MSteps:
!scrap rolls
command is sent.Column order in the spreadsheet
The text was updated successfully, but these errors were encountered: