Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some quality of life changes #3

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Some quality of life changes #3

merged 5 commits into from
Jul 31, 2024

Conversation

Bikoil
Copy link
Owner

@Bikoil Bikoil commented Jul 31, 2024

Summary by Sourcery

This pull request introduces an ASCII art banner to the console output for better visibility and corrects several typos and syntax issues in the README.md file to improve documentation clarity.

  • Enhancements:
    • Added an ASCII art banner with a message to the console output in main.ts.
  • Documentation:
    • Corrected a typo in the README.md file from 'familliar' to 'familiar'.
    • Updated the PowerShell environment variable setting syntax in README.md.
    • Fixed a typo in the npm install command in README.md from 'discors.js' to 'discord.js'.

Copy link

sourcery-ai bot commented Jul 31, 2024

Reviewer's Guide by Sourcery

This pull request introduces several quality of life improvements, including a new console log message in main.ts and various documentation updates in README.md to correct typos and improve clarity.

File-Level Changes

Files Changes
README.md Corrected typos and improved clarity in the setup instructions, including fixing environment variable settings and npm install command.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Bikoil - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider removing the ASCII art from main.ts or moving it to a separate file/function to keep the main code clean and focused.
  • Good job on improving the README. The typo fixes and formatting changes enhance its readability and usefulness.
Here's what I looked at during the review
  • 🟡 General issues: 1 issue found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟡 Documentation: 2 issues found

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

\\______/


Always free, Always open source`);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (performance): Consider moving ASCII art to a separate file and optimize logging

While the ASCII art is creative, it might be better to move it to a separate configuration or constants file to keep the main file clean and focused on core functionality. Additionally, logging such a large string on every run could impact startup performance. Consider logging it only in debug mode or on first run to optimize the bot's startup time.

Suggested change
Always free, Always open source`);
import { IntentsBitField, ActivityType } from "discord.js";
import { Client } from "discordx";
import { asciiArt } from "./constants";
if (process.env.DEBUG_MODE === "true") {
console.log(asciiArt);
}

README.md Outdated
@@ -43,7 +43,7 @@ __NOTE THAT MOST OF THESE FEATURES HAVE NOT BEEN IMPLEMENTED YET__

# How to setup the bot
> [!IMPORTANT]
> Before setting up the bot, you must have at least some javascript skill or are familliar with the language, do not open issues on learning javascript/typescript or "where do i begin from", please look at [Discord.js guide](https://discordjs.guide) and [Discordx guide](https://discordx.js.org/docs/discordx/getting-started/) for more information about discord typescript, you may also learn javascript at the [JavaScript website](https://www.javascript.com/) and typescript at [Typescript website](https://www.typescriptlang.org/docs/), Also, you may need to have some knowledge about the terminal and how to use it including bash and other shells.
> Before setting up the bot, you must have at least some javascript skill or are familiar with the language, do not open issues on learning javascript/typescript or "where do i begin from", please look at [Discord.js guide](https://discordjs.guide) and [Discordx guide](https://discordx.js.org/docs/discordx/getting-started/) for more information about discord typescript, you may also learn javascript at the [JavaScript website](https://www.javascript.com/) and typescript at [Typescript website](https://www.typescriptlang.org/docs/), Also, you may need to have some knowledge about the terminal and how to use it including bash and other shells.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (documentation): Capitalize 'JavaScript' and 'TypeScript'.

For consistency, 'javascript' and 'typescript' should be capitalized as 'JavaScript' and 'TypeScript'.

Suggested change
> Before setting up the bot, you must have at least some javascript skill or are familiar with the language, do not open issues on learning javascript/typescript or "where do i begin from", please look at [Discord.js guide](https://discordjs.guide) and [Discordx guide](https://discordx.js.org/docs/discordx/getting-started/) for more information about discord typescript, you may also learn javascript at the [JavaScript website](https://www.javascript.com/) and typescript at [Typescript website](https://www.typescriptlang.org/docs/), Also, you may need to have some knowledge about the terminal and how to use it including bash and other shells.
> Before setting up the bot, you must have at least some JavaScript skill or are familiar with the language, do not open issues on learning JavaScript/TypeScript or "where do I begin from", please look at [Discord.js guide](https://discordjs.guide) and [Discordx guide](https://discordx.js.org/docs/discordx/getting-started/) for more information about Discord TypeScript, you may also learn JavaScript at the [JavaScript website](https://www.javascript.com/) and TypeScript at [TypeScript website](https://www.typescriptlang.org/docs/), Also, you may need to have some knowledge about the terminal and how to use it including bash and other shells.

```

- **Linux/BSD/MacOS/GitBash**
```
```sh
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (documentation): Specify shell type for code block.

Adding 'sh' to the code block for Linux/BSD/MacOS/GitBash improves clarity.

Suggested change
```sh
```sh
export BOT_TOKEN=YourBotToken

@Bikoil Bikoil merged commit cd435f2 into main Jul 31, 2024
@Bikoil Bikoil deleted the Magicord-RollRelease branch July 31, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant