{"id":20582804,"url":"https://github.com/potentialstyx/module-bot-v2","last_synced_at":"2026-05-29T08:31:31.442Z","repository":{"id":154065889,"uuid":"262924577","full_name":"PotentialStyx/module-bot-v2","owner":"PotentialStyx","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-27T02:11:05.000Z","size":42,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T12:46:46.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PotentialStyx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-11T02:59:51.000Z","updated_at":"2021-07-01T20:05:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2f7bf14-ae92-4d77-ad61-4cc18ea8a202","html_url":"https://github.com/PotentialStyx/module-bot-v2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PotentialStyx/module-bot-v2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotentialStyx%2Fmodule-bot-v2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotentialStyx%2Fmodule-bot-v2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotentialStyx%2Fmodule-bot-v2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotentialStyx%2Fmodule-bot-v2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PotentialStyx","download_url":"https://codeload.github.com/PotentialStyx/module-bot-v2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PotentialStyx%2Fmodule-bot-v2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33644180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T06:37:10.552Z","updated_at":"2026-05-29T08:31:31.423Z","avatar_url":"https://github.com/PotentialStyx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Lint Python](https://github.com/Codemonkey51/module-bot-v2/workflows/Lint%20Python/badge.svg)   ![vesion dev](https://img.shields.io/badge/version-dev-brightgreen) ![version 2.0](https://img.shields.io/badge/release-v2.0-blue)\n# module bot v2\n\n### classes:\n\n* Server\n* premiumServer\n* Command\n\n### use:\n* note these are all classes under pythoniaBot.classes (EX. Command would be pythoniaBot.classes.Command or however you import it)\n* Command:\n  * arguments:\n    * Trigger: the trigger phrase if it was help [prefix]help would trigger it\n    * Response: either a callback (needs to be async) that it will call or a string that it will always respond with\n    * Type: if you made Response a callback this is 'func' if its a string this is 'str'\n    * Custom: if this is True non premiumServers wont be able to use the command\n  * example:\n    ```python\n    _help = Command('help','Commands are: \\n - help', 'str',False)\n    ```\n* Server:\n  * arguments:\n    * ID: this is the sever id use developer mode to get it\n    * Prefix: this is the prefix for this server\n    * Commands: this is a list of Command objects for that server\n  * example:\n    ```python\n    server = Server(9,'**',[_help,_premium])\n    ```\n* premiumSerer:\n  * this is the same as Server but allows custom commands\n  \n### how to make functions as commands:\nall commands that are fumctions are passes 3 arguments:\n1. ctx (some features may not work)\n2. args - a list of the other words in the command EX: !help command add \\['command','add'] would be arg\n3. server this will pass the Server or premiumServer object in\nall functions mush also be async or they will not work\n\n### initalizing the bot\nto initalize the bot you do:\n```python\nimport pythoniaBot\npythoniaBot.premade.newBot({{token}},{{los}})\n```\nthe token is the token you got from discord and los is a list of the Server/premiumServer objects\n\nnote: this will also start a flask server this will be toggleable later\n\n### simple bot\nthis is a simple bot made by combinding all of that:\n```python\nimport pythoniaBot.classes as classes\nimport pythoniaBot.premade as premade\n\nasync def _help(message,arg,server):\n  temp= []\n  for i in server.commands:\n    temp.append(' - ' + i.trigger)\n  temp2 = ''\n  for i in temp:\n    temp2 += i+ '\\n'\n  await message.send('Commands: \\n'+temp2)\n\n_help = Command('help',_help,'func',False)\n\nserver = premiumServer({{SERVER ID}},'**',[_help])\n\npremade.newBot({{TOKEN}},[server])\n```\nthat will create a bot with one command: \\*\\*help\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotentialstyx%2Fmodule-bot-v2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpotentialstyx%2Fmodule-bot-v2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpotentialstyx%2Fmodule-bot-v2/lists"}