Skip to content
MihinMUDPublic

About

A bot lib for python

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Botlib

A bot lib for python

How to use it

Download the Botlib.py file and move it to your project dir

from Botlib import Bot
from random import randint

mybot = Bot("Bot", "nice bot")

@mybot.onMessage
def hi(ctx):
    mybot.send("hi")

@mybot.onMessage
def randnum(ctx):
    try:
        mybot.send(randint(1, int(ctx[0])))
    except:
        mybot.send("Empty or wrong Input!")

mybot.runBot()

a example code on how to use it

About

A bot lib for python

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages