pantherhackers / pantherbot Goto Github PK
View Code? Open in Web Editor NEWPantherBot is a WebSocket Application that takes advantage of Slack's RTM API to interact with the channels that it is a part of.
License: Mozilla Public License 2.0
PantherBot is a WebSocket Application that takes advantage of Slack's RTM API to interact with the channels that it is a part of.
License: Mozilla Public License 2.0
!pugbomb 0
and !pugbomb -1
currently work, returning no pugs, but still setting off the timer. Is this expected behavior?
Feature: allow aliases to be created for commands
For example...
@arshbot : Mo disagrees stating that it does not allow the code to be readable (pb structure demands that the name of a script dictates the command name) and instead wants the file to be
generate_report.py
which means the command name would begenerate_report
It would be nice if "generate_report" could be the script name (and the original command name) and then an alias for power users to use, say, "g_r" or "gr" could be dynamically created to point to generate_report.
See: https://www.reddit.com/r/GaState/comments/7z39ii/esports_at_gsu/dunzqvt/
Perhaps automate the posting of some stuff to the GSU subreddit?
Why? Because it would help the community and it seems people are willing to help
All messages issued at 4:20pm should be emoji'd with all flavors of tree 🌳 🎄 🌴 🌲 🎋
Get Crypto information acronym for time span
!crypto <acronym> <timespan>
Currently, setting up a poll requires a lot of messages in the channel where the poll is created. This is problematic because it sends users useless notifications and clutters up the channel history.
One solution would be to have poll creators interact with PantherBot via PM and then PantherBot could post only the finalized poll message to the channel.
Since Slack does not give us a way to retroactively see member join dates, it would be beneficial to keep a small logging that we can check up on.
See pugbomb.py... Sad day it is.
Use .env file rather than having to directly edit one's own system environment variables
Cutebomb that pulls data from /r/aww or /r/puppies or something!
Roll dice of your choosing
!dice - Roll x number of six sided
!dice Roll x number of y sided dice
Thoughts?
Likely need to have a separate script running in tandem or a thread that is in charge of handling timed events, such as continuous reminders or channel posts.
Send messages to users the next time they speak
!ambush < user >: < message >
Thoughts?
Whenever a user has a message beginning with $
('$10 ought to do it', '$$$ Money!'), PantherBot takes the rest of the line as an admin call which will triggers this erroneous message
It seems you aren't authorized to use admin commands. If you believe this a mistake, contact the maintainer(s) of PantherBot
Mimick the solution for the similar ! solution. Check to see if the line is long and if the next few tokens aren't $
!github
You can add commands to return things like branch names, last contributions, number of forks, number of stars, issues, PRs, etc.
Thoughts?
As per the rules of council:
The recent experience with PantherBot in council has taught a lesson. For all PantherBot functions allowed in council, please follow these rules from now on.
Create a command that updates the env variable WELCOME_MESSAGE
to store a welcome message that will be sent whenever a new user joins. Currently this feature exists but draws from a .txt file. We need to change it to draw from an env variable and have the capability to update the WELCOME_MESSAGE
The main reason pbot was python 2 was due to an incompatibility with the slackclient package. This has been resolved, convert to python 3.
This blocks all future dev work and should be done first.
Currently all creds are pulled from env variables/files on the instance running pantherbot. This should be changed. Pantherbot should only need to pull one set of creds for the DB, connect to the db, and pull all creds needed from there.
Get stock information by stock acronym
Maybe get the info for the past day, month, 3 months, year, etc.
!stock <acronym> <timespan>
Example:
!stock GOOGL 1m
!stock GE 1d
!stock TSLA 3m
The welcome message when a member joins returns 'true' for some reason via slackbot. This needs to return the contents of a specific file. @braxton-mclean knows more about where to pull the contents from.
Would you guys @mhijazi1 @braxton-mclean @arshbot be for something like this? It'd be good just so when people submit a PR they get some immediate feedback on code rather than having to wait for you guys to review.
https://github.com/marketplace/travis-ci#pricing-and-setup
Maybe not this one specifically but something to this effect.
Pugbomb should cache images and thus avoid making a call reddit api each time it is called
As per the rules of council:
The recent experience with PantherBot in council has taught a lesson. For all PantherBot functions allowed in council, please follow these rules from now on.
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.