Skip to content

Commit

Permalink
intial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
UPSAtwal committed Feb 2, 2023
1 parent 66c9569 commit 46fad20
Show file tree
Hide file tree
Showing 11 changed files with 4,519 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Uday/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line", "consistent"],
"dot-location": ["error", "property"],
"handle-callback-err": "off",
"indent": ["error", "tab"],
"keyword-spacing": "error",
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"no-console": "off",
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-inline-comments": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"no-trailing-spaces": ["error"],
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quotes": ["error", "double"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
}
}
32 changes: 32 additions & 0 deletions Uday/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
config.json

# out dir
dist/
30 changes: 30 additions & 0 deletions Uday/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: OWASP_twitterbot
tags:
- discord.js
- javascript
---

# Discord.js Example

This starts a Discord bot using [discord.js](https://discord.js.org/#/).
## ✨ Features

- Discord.js
- JavaScript

## 💁‍♀️ How to use

-npm install discord.js
-npm install dotenv



- Install dependencies `yarn`
- Connect to your Railway project `railway link`
- Start the bot `railway run yarn dev`

## 📝 Notes

- To create a new command, just create a file in the `Commands` directory. You can take a look at the `Template.js` file for an example of what commands should look like. For any additional help see the [discord.js guide](https://discordjs.guide).

10 changes: 10 additions & 0 deletions Uday/Template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { SlashCommandBuilder } = require("@discordjs/builders");

module.exports = {
data: new SlashCommandBuilder()
.setName("name")
.setDescription("My cool command does this!"),
execute: async (interaction, client) => {
return interaction.reply("Hey! you used my command!");
},
};
Loading

0 comments on commit 46fad20

Please sign in to comment.