---
title: "Discussion on \"How to write a phBot plugin: the Python API, hooks and a working example\" | Hashnode"
description: "Discussion on \"How to write a phBot plugin: the Python API, hooks and a working example\". phBot plugins are one Python file in the Plugins folder. The hooks phBot calls, the API calls my ten plugins use, and a small plugin you can run."
url: "https://hashnode.com/posts/phbot-plugin-python-api/6af41e7de7d5fedc7df4fc36"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to write a phBot plugin: the Python API, hooks and a working example](https://mohamedgado.hashnode.dev/phbot-plugin-python-api?utm_source=hashnode&utm_medium=feed)

phBot plugins are one Python file in the Plugins folder. The hooks phBot calls, the API calls my ten plugins use, and a small plugin you can run.

14h ago · 6 min read · mohamedgado.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#gamedev](https://hashnode.com/tag/gamedev)
-   [#plugins](https://hashnode.com/tag/plugins)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Mohamed Gado](https://hashnode.com/@mohamedgado)

@mohamedgado · Tanta, Egypt

  
[View profile](https://hashnode.com/@mohamedgado)

Senior Software Engineer · React, Next.js, React Native · Building Masareef & Rafiq

Senior Software Engineer with 6+ years building web and mobile products in React, Next.js and React Native. I build and ship Masareef and Rafiq on my own. Originals live at mohamedgado.com/writing.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
