diff --git a/.github/workflows/writerside.yml b/.github/workflows/writerside.yml new file mode 100644 index 0000000..860e7b8 --- /dev/null +++ b/.github/workflows/writerside.yml @@ -0,0 +1,75 @@ +name: Build documentation + +on: + push: + # To trigger the workflow once you push to the `main` branch + # Replace `main` with your branch’s name + branches: ["aviation"] + # Specify to run a workflow manually from the Actions tab on GitHub + workflow_dispatch: + +permissions: + id-token: write + pages: write + +env: + # Name of module and id separated by a slash + INSTANCE: Writerside/docs + # Replace XX with the ID of the instance in capital letters + ARTIFACT: webHelpDOCS2-all.zip + # Docker image version + DOCKER_VERSION: 241.18775 + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Build Writerside docs using Docker + uses: JetBrains/writerside-github-action@v4 + with: + instance: ${{ env.INSTANCE }} + artifact: ${{ env.ARTIFACT }} + docker-version: ${{ env.DOCKER_VERSION }} + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: docs + path: | + artifacts/${{ env.ARTIFACT }} + retention-days: 7 + + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + # Requires build job results + needs: build + runs-on: ubuntu-latest + + steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: docs + + - name: Unzip artifact + run: unzip -O UTF-8 -qq ${{ env.ARTIFACT }} -d dir + + - name: Setup Pages + uses: actions/configure-pages@v4.0.0 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3.0.1 + with: + path: dir + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4.0.4 \ No newline at end of file diff --git a/README.md b/README.md index 1726c33..39c24c9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,11 @@ # Yiski -
+ # What is Yiski -A bot to replace the original idea of devOS Core for the devOS: Sanity Edition server. Also used to try to learn ~~Python~~ Kotlin for fun. -- ~~Uses Python 3.10, but 3.9+ should work.~~ Now using Kotlin! +Yiski is an in-house developed Discord bot by devOS: Sanity Edition, with its development being lead by [asojidev](https://github.com/asoji). -**This is something I'm doing just for fun and to learn ~~Python~~ Kotlin, excuse anything shitty going on.** +Powered by [JDA](https://github.com/discord-jda/JDA), [JDA-KTX](https://github.com/minndevelopment/jda-ktx), and [CephalonCosmic](https://twitter.com/CephalonCosmic)'s [Aviation](https://gitlab.com/artrinix/discord/aviation) Framework. Kotlin too, of course. ## License This project is licensed under the [MIT License](LICENSE) \ No newline at end of file diff --git a/Writerside/c.list b/Writerside/c.list new file mode 100644 index 0000000..c4c77a2 --- /dev/null +++ b/Writerside/c.list @@ -0,0 +1,6 @@ + + +If you already know how to setup a Discord bot, go ahead and skip this. Just be sure to give it full Administrator privileges, and the Presence, Server Members, and Message Content intent.
+Head over to the Discord Developer Portal.
+ +Click on Applications on the top left.
+ +Sign in to your Discord account if you haven't already.
+ +You will be redirected to your Applications page after signing in.
+ +Click on New Application on the top right.
+ +In the Create an Application modal, fill out how you want it.
+We'll call it Yiski and put it under our Personal account here.
+It won't really matter if it's as a Team or Personal, unless you want other people managing your bot's application.
+Make sure to agree to the Discord Developers Terms of Service and Developer Policy checkbox.
+You will be redirected to your Application's page. Here you will be able to manage your Application.
+ +Click on Bots on the sidebar
+ +You will now be at the Bots page, here you can setup your bot's profile, get the token, setup intents, and have a permissions calculator.
+ +Click on Reset Token
+ +If prompted, type in your 2FA code to reset the bot token.
+You now have your bot token! Store it somewhere temporarily, maybe in a temporary Notepad window, we'll need this later. We'll be using this to have the bot login.
+Scroll down a little, and enable Presence Intent, Server Members Intent, and Message Content Intent.
+ +Next, head over to the Installation page.
+ +You will now be at the Installations page. Here you can get your bot into your server [guild], or install as an app. We'll want to do a Guild Install.
+ +Scroll down until you find Guild Install under Default Install Settings. Click on the Dropdown and click on bot
+ +The Guild Install option will now expand. Click on Select for Permission and select Administrator.
+ +Click on Save Changes
+ +Scroll back up until you find Install Link. Make sure it's selected on Discord Provided Link. Click on Copy.
+ +Open a new tab, and paste the link you got, and go to it. Select on Add to Server
+ +On the External Applications screen, select what server you want to put this bot into under the Add to Server dropdown. Click Continue once you have your server selected.
+ +The prompt will now ask you to confirm if you want to add this bot with the permissions specified. Hit Authorize.
+ +Your bot will now be added to your server.
+ +Go to where you want to install your bot
+Now go step on a LEGO because this bot isn't production ready enough yet to be self hosted. This will be updated when it's ready to.
+