{"id":19473394,"url":"https://github.com/cee-studio/p","last_synced_at":"2026-03-04T10:01:24.796Z","repository":{"id":53078496,"uuid":"351580402","full_name":"cee-studio/p","owner":"cee-studio","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-08T16:09:01.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-25T15:37:20.604Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/cee-studio.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}},"created_at":"2021-03-25T21:27:58.000Z","updated_at":"2021-07-06T01:44:35.000Z","dependencies_parsed_at":"2022-09-12T03:22:05.985Z","dependency_job_id":null,"html_url":"https://github.com/cee-studio/p","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cee-studio/p","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cee-studio%2Fp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cee-studio%2Fp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cee-studio%2Fp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cee-studio%2Fp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cee-studio","download_url":"https://codeload.github.com/cee-studio/p/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cee-studio%2Fp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-10T19:18:25.486Z","updated_at":"2026-03-04T10:01:24.777Z","avatar_url":"https://github.com/cee-studio.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Programmable Discord Bot\nA intuitive and hassle-free way to program a Discord Bot.\n1. Zero setup\n2. Script Discord APIs in chat\n\n## Invite links\n\n* Click on this [link](https://bit.ly/stensal) to add me as JS script eval bot.\n  You can run pure JS scripts with limited capability to access Discord APIs\n  \n* Click on this [link](https://bit.ly/38LFRrS) to add me to manage your messages.\n  Give the bot the permission to manage your server's messages so you can script messages.\n\n* Click on this [link](https://bit.ly/3fN0NmD) to add me as an admin.\n  Give the bot the admin permission, so you can script all things you can do manually.\n  As this is risky, please invite the bot to your test servers only.\n    \n\n## Commands\n\n### Display help\n```\n!h\n```\n\n### Delete results\n```\n!d\n```\n\n### Run a script in JS (ES5) Syntax\n```\n!r  \"Hello World\"\n```\n\n```\n!r 1+1\n```\n\n```\n!r ```js\nconsole.log(\"Hello World!\");```\n```\n\n## Scripting Discord APIs\nNOTE: To get a channel id (channel_id) or message id (message_id), right-click on either the channel or the message and select `Copy ID` in the menu.\n\n### Display the information of the discord user who ran this command\n```\n!r  runner\n```\n\n### Display the discord user structure of whoever runs this command\n```\n!r  cee.get_user(runner.id)\n```\n\n\n### Get the current channel infomation in JSON\n```\n!r cee.get_channel(runner.channel_id)\n```\n\n### Modify the current channel\n```\n!r cee.modify_channel(runner.channel_id, { name:\"a-new-channel-name\" })\n```\n\n### Delete the current channel\n```\n!r cee.delete_channel(runner.channel_id);\n```\n\n### Get Channel Messages\n```\n!r cee.get_channel_messages(runner.channel_id);\n```\n\n```\n// One message\n!r var msgs = cee.get_channel_messages(runner.channel_id);\nmsgs[0];\n```\n\n```\n// Print out the author of each message\n!r ```js\n  var msgs = cee.get_channel_messages(runner.channel_id);\n  for (var i in msgs)\n    console.log(msgs[i].author.username)```\n \n```\n\n### Get channel message\n```\n!r cee.get_channel_message(runner.channel_id, runner.message_id);\n```\n\n### Create a message\n```\n!r cee.create_message(runner.channel_id, { content: \"Hello World!\" });\n```\n\n### Create a reaction\n```\n!r ```js\nvar heart = transformer.url_encode(\"❤️\");\ncee.create_reaction(runner.channel_id, runner.message_id, heart);```\n```\n\n\n### Get all users who react to an emoji\n```\n!r ```js\nvar play = transformer.url_encode(\"▶️\");\nvar users = cee.get_reactions(runner.channel_id, runner.message_id, play);\nfor (var i in users)\n  console.log(users[i]);```\n```\n\n### Delete all reactions of a message\n```\n!r cee.delete_all_reactions(runner.channel_id, runner.message_id)\n```\n\n### Delete all reactions for an emoji\n```\n!r ```js\nvar play = transformer.url_encode(\"▶️\");\ncee.delete_all_reactions_for_emoji (runner.channel_id, runner.message_id, play);```\n```\n\n### Edit a message\n```\n!r cee.edit_message(runner.channel_id, \u003cmessage_id\u003e, { content: \"!r console.log(1)\" });\n```\n\n### Delete a message\n```\n!r cee.delete_message(runner.channel_id, runner.message_id);\n```\n\n### Bulk delete messages\n```\n!r cee.bulk_delete_messages(runner.channel_id, [\u003cmessage-ids\u003e]);\n```\n\n### Edit Channel Permissions\n```\n!r cee.edit_channel_permissions(runner.channel_id, overwrite_id, params);\n```\n\n\n### Get Channel Invites\n```\n!r cee.get_channel_invites(runner.channel_id);\n```\n\n## Trigger Typing Indicator\n```\n!r cee.trigger_typing_indicator(runner.channel_id);\n```\n\n## Get Guild Channels\n```\n!r ```js\nvar l = cee.get_guild_channels(runner.guild_id);\nfor(var i in l)\n  console.log(l[i]);```\n\n\n!r ```js\nvar l = cee.get_guild_channels(runner.guild_id);\nfor(var i in l)\n  console.log(l[i].name + \":\" + l[i].type);```\n\n```\n\n## Create guild channel\n```\n!r cee.create_guild_channel(runner.guild_id, { name:\"a-new-channel\" });\n```\n\n## List guild members\n```\n!r  cee.list_guild_members(runner.guild_id);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcee-studio%2Fp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcee-studio%2Fp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcee-studio%2Fp/lists"}