{"id":22303277,"url":"https://github.com/shrianshchari/samples_to_discord","last_synced_at":"2025-03-26T00:32:29.891Z","repository":{"id":213898347,"uuid":"735210956","full_name":"shrianshChari/samples_to_discord","owner":"shrianshChari","description":"Convert txt files into a readable, compressed format for use in the Smogon discord","archived":false,"fork":false,"pushed_at":"2024-03-04T19:30:48.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T21:18:56.799Z","etag":null,"topics":["discord","python","smogon"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shrianshChari.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-24T04:18:21.000Z","updated_at":"2024-01-18T20:15:05.000Z","dependencies_parsed_at":"2024-01-31T14:49:28.666Z","dependency_job_id":"f18b9973-35cd-4d3b-b69e-5aa13bdf6617","html_url":"https://github.com/shrianshChari/samples_to_discord","commit_stats":null,"previous_names":["shrianshchari/samples_to_discord"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrianshChari%2Fsamples_to_discord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrianshChari%2Fsamples_to_discord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrianshChari%2Fsamples_to_discord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shrianshChari%2Fsamples_to_discord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shrianshChari","download_url":"https://codeload.github.com/shrianshChari/samples_to_discord/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566105,"owners_count":20636391,"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":["discord","python","smogon"],"created_at":"2024-12-03T18:43:17.308Z","updated_at":"2025-03-26T00:32:29.863Z","avatar_url":"https://github.com/shrianshChari.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tbolt's SmogCord Resources Formatting Tool\nIt's a Python script that will turn this:\n\n```\nOU Resources\nNote that many resources on the forums will be outdated because of the Indigo Disk DLC.\nOU Simple Questions and Answers: https://www.smogon.com/forums/threads/simple-questions-simple-answers-thread.3710772/\nOU Room on Showdown: https://play.pokemonshowdown.com/overused\nOU Discord: https://discord.com/invite/Pgn3Nrb\n```\n\ninto this:\n\n```\n__OU Resources__\nNote that many resources on the forums will be outdated because of the Indigo Disk DLC.\n**OU Simple Questions and Answers:** \u003chttps://www.smogon.com/forums/threads/3710772/\u003e\n**OU Room on Showdown:** \u003chttps://play.pokemonshowdown.com/overused\u003e\n**OU Discord:** https://discord.com/invite/Pgn3Nrb\n*Last Updated \u003ct:1702567467:f\u003e*\n```\n\n### Prerequisites\n- You'll need to have [Python 3.6 or later](https://www.python.org/) installed.\n- You also need to be know how to run Python scripts on the [command line](https://realpython.com/run-python-scripts/#how-to-run-python-scripts-from-the-command-line)\n\n### How to use\n1. Edit the file to add or remove resources.\n2. Run `python samples_to_disc.py \u003cfilename\u003e` where `\u003cfilename\u003e` represents the file whose command you want to update.\n3. Copy the output of this Python program.\n4. In the Smogon Discord, type `/custom edit` and hit \u003ckbd\u003eEnter\u003c/kbd\u003e.\n5. Type the name of the command you want to update (it should match the name of the file you just edited). If you're not sure what commands there are, check the \"Chatot Bot Commands\" thread of the \"#comp-read-me\" forum channel.\n6. Delete the \"Prints\" part of the command and paste in the output of the Python program that you copied earlier.\n7. Hit \"Submit\" and now it should work!\n\n### Notes\n- First line of the file is treated as the title and has an underline.\n- Each line can be separated into a \"Resource Name: Link\" format. The \"Resource Name\" part is bolded and the link is modified so that Smogon threads aren't as long and most websites (except for Discord invites) cannot display embeds for conciseness.\n- If a line doesn't follow this format, it is left untouched.\n- Finally, it gives a timestamp to signify when the command was run, to give a sense of when the resources were last updated.\n\n### Smogon Discord\nhttps://discord.gg/smogon\n\nFeel free to ping me (`@tbolt__`) if you have questions about how I format text!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrianshchari%2Fsamples_to_discord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshrianshchari%2Fsamples_to_discord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrianshchari%2Fsamples_to_discord/lists"}