Giter Club home page Giter Club logo

mumble-bots's Introduction

mumble-bots

A list of bots for Mumble Servers. Also, a framework for easily build your own bots in Python.

Commanding bots

The API is simple; use slash commands in messages to bots.

List of supported commands by default:

  1. /add

Included Bots

AFKMove

A bot

Echo

A test bot that reply back a message to the sender. This does not support any bang or slash commands.

Eve

A bot that eavesdrop on a channel and replays it to another channel, potentially with a delay.

Dice

Using a Bot

Example Usage

#!/bin/python
#
# Simple bot that will move all users on the server to a channel
# when issued the command /moveall.
# Set the channel ID with /set channel_id 1
# Or the channel name with /set channel_name "the name"
# You can manage the rights of this bot by sending it the
# /add_right message, e.g. /add_right UserName moveall
# or /remove_right.
import mumble

class UserMoveBot(mumble.AdvanceBot):
  def __init__(self, server, name = "EchoBot by HansL"):
    mumble.CommandBot.__init__(self, server, name = name)
    self.args = {
      'max_idle': 60
    }

  def stopping(self):
    self.thread.keep_going = False

  def on_

  def on_command_moveall(self, *):
    for user in self.users():
      user.move_to(self.get_channel_by_id(self.vars["channel_id"]))

if __name__ == '__main__':
  # Start the bot
  bot = UserMoveBot(mumble.Server("example.com"))
  bot.join()

mumble-bots's People

Contributors

hansl avatar

Watchers

James Cloos avatar Martin Bober avatar

Forkers

hicks85

mumble-bots's Issues

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.