{"id":21569345,"url":"https://github.com/aweirddev/linelib","last_synced_at":"2025-12-14T00:54:48.013Z","repository":{"id":64308477,"uuid":"568718926","full_name":"AWeirdDev/linelib","owner":"AWeirdDev","description":"🚀 The simple yet perfect solution to launch your bot to the next level.","archived":false,"fork":false,"pushed_at":"2023-09-03T07:42:21.000Z","size":183,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"v2","last_synced_at":"2025-03-20T23:17:30.621Z","etag":null,"topics":["async","bot","easy-to-use","line","line-api","line-bot","simple"],"latest_commit_sha":null,"homepage":"https://google.com/search?q=hello","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AWeirdDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-21T09:10:57.000Z","updated_at":"2024-12-19T15:11:49.000Z","dependencies_parsed_at":"2024-04-28T12:44:03.985Z","dependency_job_id":"06b9d52b-344d-435c-870e-bae6b88b392e","html_url":"https://github.com/AWeirdDev/linelib","commit_stats":null,"previous_names":["aweirddev/linelib","aweirdscratcher/linelib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Flinelib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Flinelib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Flinelib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AWeirdDev%2Flinelib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AWeirdDev","download_url":"https://codeload.github.com/AWeirdDev/linelib/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248231900,"owners_count":21069424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["async","bot","easy-to-use","line","line-api","line-bot","simple"],"created_at":"2024-11-24T11:09:13.275Z","updated_at":"2025-12-14T00:54:47.951Z","avatar_url":"https://github.com/AWeirdDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Check out v3 (linex) https://github.com/AWeirdScratcher/linex\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/90096971/213644783-f525dd20-af78-4181-b665-fd6506410bde.png\" alt=\"LINELIB Banner\" /\u003e\n\n# LINELIB v2.2\n**The All-in-One LINE Bot Integration Solution.**\n\n[![Get Started →](https://img.shields.io/badge/Get_Started_→-2ea44f?style=for-the-badge\u0026logo=line\u0026logoColor=ffffff)](https://github.com/AWeirdScratcher/linelib/wiki)\n\n\n### Installation\nUse the following, or clone this repository.\n  \n```ruby\n$ pip install -U linelib\n```\n\n\u003c/div\u003e\n\n# 🔑 Features[.](https://google.com/search?q=dont+click+bro)\n\n\u003cdiv\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/90096971/213690282-662ec477-b826-4fa4-9184-abcd8f0230d8.png\" alt=\"Code Example\" align=\"left\" width=\"450\" /\u003e\n  \u003cdiv\u003e\n    \n  ## ✨ Optimized Source Code.\n  Cleaner source code is beneficial because it is easier to read, understand, and maintain. It's easier for you to add new features, fix bugs, and understand how the code works. Clean code is also more efficient, as it is optimized for performance and is less likely to contain errors or bugs. It is also more reusable, allowing you to use it in other projects without having to rewrite it.\n    \n  [![  - See Example →](https://img.shields.io/badge/_-See_Example_→-06c755?style=for-the-badge\u0026logo=python\u0026logoColor=ffffff)](#1-quick-example)\n    \n  \u003c/div\u003e\n\n\u003c/div\u003e\n\n\u003cbr /\u003e\u003cbr /\u003e\u003cbr /\u003e\n\n\u003cimg src=\"https://user-images.githubusercontent.com/90096971/213693396-83c0c20a-a30a-4648-b546-05c7019f10a0.png\" width=\"150\" alt=\"LINE Notify Mockup\" align=\"right\" /\u003e\n\n## 🧩 With Extensions[.](https://i.kym-cdn.com/entries/icons/original/000/021/154/image.jpeg)\n**With LINELIB, you can easily and efficiently integrate various LINE services into your projects and applications, all with just a few lines of code.** LINELIB simplifies the process of working with LINE services, making it more accessible and streamlined for developers of all skill levels. Whether you're looking to add messaging functionality, connect with LINE's social media platform, or utilize other LINE services, LINELIB makes it simple to do so with minimal code requirements.\n\nLINELIB currently supports these LINE services:\n- LINE Messaging API\n- LINE Notify\n- LINE Social Plugins\n\n[![  - LINE Notify Example →](https://img.shields.io/badge/_-LINE_Notify_Example→-06c755?style=for-the-badge\u0026logo=python\u0026logoColor=ffffff)](#2-line-notify-example)\n\n## 💪 More advanced.\n**Create text commands like a pro.** \n\nLinelib helps you to quickly and efficiently create text commands by organizing them inside cogs!\n\n\u003cimg alt=\"Greeting Command Source Code\" src=\"https://user-images.githubusercontent.com/90096971/216757621-b3b462f9-c744-42f1-bb7c-340c6b6ebf21.png\" width=\"800\" /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \n  # Ready to give it a shot?\n  Oh my goodness, you're here! I'm hyped to see that you're willing to give it a go.\n  \n  Anyways, here are some helpful links that can get you around with LINELIB:\n  \n   [🚀 See More Examples](https://github.com/AWeirdScratcher/linelib)\n\n   [📖 Documentation](https://github.com/AWeirdScratcher/linelib/wiki/documentation)\n  \n\u003c/div\u003e\n\n# 🎉 Examples.\n\"Don't just talk. Show me some examples!\" I hear you say...\n\n## 1: Quick Example\n```py\nfrom linelib import Client\n\nclient = Client('channel secret', 'channel access token')\n\n@client.event('ready')\nasync def ready():\n  print('I am ready!')\n  \nclient.run()\n```\n\n## 2: LINE Notify Example\n```py\nfrom linelib import Client\nfrom linelib.notify import Notify\n\nclient = Client('channel secret', 'channel access token')\nnotify = Notify(\"access token\")\n\n@client.event('ready')\nasync def ready():\n  await notify.notify(\"Daily News:\\nLinelib version 2 has released!!11!\")\n  \nclient.run()\n```\n\n## 3: Simple Command Cog\nThis is a simple cog with the command \"hello\", which requires one argument (times) in order to work.\n\nUser: `hello 10`\n\nBot: `You greeted me 10 times!`\n\n```py\nfrom linelib import Client\nfrom linelib.ext import commands\n\nclient = Client('channel secret', 'channel access token')\n\nclass MyCog(commands.Cog):\n  @commands.cog_command(name=\"hello\")\n  async def greet_command(self, ctx, times: int):\n    # \"self\" is required!\n    await ctx.reply(f\"You greeted me {times} times!\")\n\nclient.load_cog(MyCog())\nclient.run()\n```\n\n## 4: Advanced Command Cog\nThis is a more advanced command cog with command rules, and rule rejection handlers.\n\nThe command (say) requires one argument \"text\", but you should add a \"*\" in the `greet_command` coroutine function to tell linelib to pass the rest of the message content into the argument (\"text\").\n\nUser: `say I love chocolate!`\n\nBot: `I love chocolate!`\n\n1 second later...\n\nUser: `say I still love it.`\n\nBot: `The cooldown is 10 seconds long! Please wait.`\n\n```py\nfrom linelib import Client\nfrom linelib.ext import commands, rule\n\nclient = Client('channel secret', 'channel access token')\n\nclass MyCog(commands.Cog):\n  @commands.cog_command(\n    name=\"say\",\n    rule=rule.CommandRule(\n      rule=\"cooldown\",\n      seconds=10\n    )\n  )\n  async def greet_command(self, ctx, *, text):\n    # \"self\" is required!\n    await ctx.reply(text)\n    \n  @greet_command.rule_reject\n  async def rejected(self, ctx):\n    await ctx.reply('The cooldown is 10 seconds long! Please wait.')\n\nclient.load_cog(MyCog())\nclient.run()\n```\n\n## 5: Custom Rule (Advanced)\nCustom rules must have a function named \"handler\". The handler must return a valid boolean (`True` or `False`).\n\n`True` represents that the user is able to use the command, vice versa.\n```py\nfrom linelib.ext import rule\n\nclass MyRule(rule.CommandRule):\n  def handler(self, ctx):\n    # ... your awesome code\n    return True # must return True or False\n    \nMyRule(rule=\"based.custom\") # Now, it's a valid command rule.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Flinelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faweirddev%2Flinelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faweirddev%2Flinelib/lists"}