Giter Site home page Giter Site logo

desultory-zz / groupme-bot Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 279 KB

A simple php groupme bot I made, it should be easy for anyone to modify this and make it do whatever you want, I included some examples such as responding to strings and getting the weather from Weather Underground

License: GNU General Public License v3.0

PHP 99.73% Shell 0.27%

groupme-bot's Introduction

This is a simple groupme bot I made using PHP

It has the ability to respond to certain phrases, mention users, give the weather, give current cryptocurrency prices, and do a lot more things pretty easily by simply adding things to the bot.php file.

First, you need to go to https://dev.groupme.com/bots and register a bot there, you should be asked for a callback url, the callback url is the url where the bot.php will be sitting. An example is https://your.website/botdiectory/bot.php

I recommend running each instance of this bot in it's own subdirectory as it will be using it's own database (db.sqlite)

By default, logs will be made added to the database and displayed in the log section of the site

Once you have created your bot, go to the directory where the bot is running in a web browser. Fill in all details, wunderground data is optional.

The panel will be a way to manage responses, settings, and send messages from the bot.

By default, the bot will only respond to "test". You can add and remove responses by going to the panel and changing the responses.

You can make the bot mention a user in a response by adding %n to the response and make it list their userid with %u

I have only tested this with Debian 9, Apache2.4, and PHP 7.0. I cannot guarantee that it runs on any other system but it should. Some php functions used may not work on a VPS, Webhost, or server slot. I have only tested them on a virual machine in ESXi. I cannot guarantee the security of this bot, I have tested some escape sequences but I cannot guarantee that someone in your groupme won't be able to get root access on your system using this bot. The good news is that if they do, you'll see them doing it in the chat.

groupme-bot's People

Contributors

desultory-zz avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.