8000 GitHub - Palac1123/facebotv2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Palac1123/facebotv2

 
 

Repository files navigation

Facebot

A simple facebook bot made in python.

example echo command

# ./commands/echo.py

async def myFunction(bot, event):
  args = event.args
  if not args:
    return await event.sendReply("Please provide a message you want to echo.")
  return await bot.sendMessage(
    f"ECHO: {args}",
    event.thread_id,
    event.thread_type
  )

config = {
  "name": 'echo', # (required) your command name
  "def": myFunction, # (required) lagay mo dito yung function, pede rin 'function' ang key name
  "author": "Christopher", # (optional) Author name
  "usage": "{p}echo [text]", # command usage
  "description": "Text here...", # lagay mo dito description ng command,
  "usePrefix": False, # default False
  "adminOnly": False, # default False
}

or you can also use this config

config = dict(
  name = 'echo',
  function = myFunction, # not 'def'
  author = 'Muhammad Greeg',
  usage = "{p}echo [text]",
  description = "Your description...",
  usePrefix = False,
  adminOnly = False
)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.8%
  • HTML 9.7%
  • JavaScript 3.0%
  • CSS 1.5%
0