{"id":13410003,"url":"https://github.com/lispcord/lispcord","last_synced_at":"2025-04-14T20:31:12.123Z","repository":{"id":62623770,"uuid":"108530281","full_name":"lispcord/lispcord","owner":"lispcord","description":"A client library for the discordapp bot api","archived":false,"fork":false,"pushed_at":"2024-01-06T08:14:13.000Z","size":346,"stargazers_count":72,"open_issues_count":7,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T09:01:46.707Z","etag":null,"topics":["bot","discord","discord-api","discord-app","discordapp"],"latest_commit_sha":null,"homepage":"","language":"Common Lisp","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/lispcord.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}},"created_at":"2017-10-27T10:01:39.000Z","updated_at":"2025-02-09T11:01:40.000Z","dependencies_parsed_at":"2024-01-06T09:35:11.376Z","dependency_job_id":null,"html_url":"https://github.com/lispcord/lispcord","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lispcord%2Flispcord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lispcord%2Flispcord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lispcord%2Flispcord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lispcord%2Flispcord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lispcord","download_url":"https://codeload.github.com/lispcord/lispcord/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248955483,"owners_count":21189127,"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":["bot","discord","discord-api","discord-app","discordapp"],"created_at":"2024-07-30T20:01:04.456Z","updated_at":"2025-04-14T20:31:11.648Z","avatar_url":"https://github.com/lispcord.png","language":"Common Lisp","funding_links":[],"categories":["Libraries"],"sub_categories":["Common Lisp"],"readme":"# Lispcord -- A wrapper for the [DiscordApp](http://discordapp.com/) WEB-API\n\nLispcord aims to make it freakishly easy to build bots for Discord.\n\nThe [examples](./examples) folder contains some more ideas on how to get started :)\n\n\n#### NOTE: this is not even an alpha quality software\n\nA lot of the api is changing rapidly, use at own risk!\n\n#### NOTE: recently we axed the Pipe system\n\nPlease re-adjust your bots to use the new API going forwards.\nAs it turned out, the pipes worked well for small bots but had the penchant to\nbloat in complexity rather quickly, and weren't particularly fast :D\n\n\n## Ping bot\n\nThis assumes that :lispcord has been loaded in your image. If not, try running\n\n```lisp\n(ql:quickload :lispcord)\n```\n\nafter cloning the repo to your `~/common-lisp` or `~/quicklisp/local-projects` folder.\n\n```lisp\n(defpackage :ping-bot\n  (:use :cl :lispcord))\n(in-package :ping-bot)\n\n(setf (org.shirakumo.verbose:repl-level) :info)\n\n(defbot *ping-bot* \"\u003cYour Token Here\u003e\")\n(connect *ping-bot*) ; Yes, you can register handlers after connect\n\n(add-event-handler :on-message-create\n  (lambda (msg) (if (string= (lc:content msg) \"ping!\") (reply msg \"pong!\"))))\n```\n\nUnlike many other libraries, **lispcord** is capable of running an arbitrary amount\nof client-instances at the same time.  \nEvery (non-cache related) function takes an optional \"bot\" parameter,\neither via keyword or as an anonymous optional,\nwith which you can specify what instance should execute the action.  \n\nFor convenience, however, **lispcord** *also* defines a dynamic `*CLIENT*` which\ngets automatically bound to the last instance defined via `DEFBOT`. This allows you to:\n\n  - drop having to specifiy the bot for 1-instance scripts\n  - use `LET` to override the global, and create local 1-instance spaces\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flispcord%2Flispcord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flispcord%2Flispcord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flispcord%2Flispcord/lists"}