Skip to content

Commit

Permalink
New era bot (#10)
Browse files Browse the repository at this point in the history
* remove cognito functions

* change to typescript

* --wip--

* add read cmd

* ignore config.ts

* add get-all-members

* build & fix things

* update env variables

* add error log

* fix .env.example

* wip

* change dev command

* update file import

* latest

* latest update

* make sure 1 machine is running

* refactor

* add soru-cevap thread starter

* add gidenler video env

* update .env.example and removemember

* fix things

* add gunun-sorusu command

* update channel

* remove allowed users

* enable get messages to work with user & channel

* remove unused code

* Create fly.yml

* fix channel

* remove unused commands

---------

Co-authored-by: Can Sirin <[email protected]>
  • Loading branch information
cansirin and cansirin authored Dec 8, 2023
1 parent d19ddd5 commit 07c3525
Show file tree
Hide file tree
Showing 42 changed files with 2,849 additions and 3,650 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CLIENT_ID=client-id
DISCORD_TOKEN=discord-token
CHATGPT_API_KEY=get-your-chatgpt-key
GIDENLER_CHANNEL_ID=channel-id
GIDENLER_VIDEO_LINK=youtube-link
15 changes: 15 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Fly deploy
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea
node_modules
.DS_Store
config.ts
.env
grouped.json
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ WORKDIR /app
COPY --from=deps /app/node_modules /app/node_modules
ADD . .

CMD ["./node_modules/.bin/nodemon", "index.js"]
# CMD ["./node_modules/.bin/nodemon", "index.ts"]
# CMD ["node", "--loader", "ts-node/esm", "index.ts"]
CMD ["npm", "run", "dev"]
22 changes: 0 additions & 22 deletions cognitoConfirmUser.js

This file was deleted.

21 changes: 0 additions & 21 deletions cognitoResendActivation.js

This file was deleted.

28 changes: 0 additions & 28 deletions cognitoSignUp.js

This file was deleted.

25 changes: 0 additions & 25 deletions commands/confirmActivation.js

This file was deleted.

24 changes: 0 additions & 24 deletions commands/help.js

This file was deleted.

21 changes: 0 additions & 21 deletions commands/resendActivation.js

This file was deleted.

47 changes: 0 additions & 47 deletions commands/signup.js

This file was deleted.

36 changes: 0 additions & 36 deletions commands/unused/goLive.js

This file was deleted.

56 changes: 0 additions & 56 deletions commands/unused/info.js

This file was deleted.

18 changes: 0 additions & 18 deletions config.js

This file was deleted.

3 changes: 3 additions & 0 deletions config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const KAMPUS_GUILD_ID = "717812863414042624";
export const GUNAYDIN_CHANNEL_ID = "1158288028511522877";
export const SORU_CEVAP_CHANNEL_ID = "1019649988550197248";
28 changes: 0 additions & 28 deletions createDiscordClient.js

This file was deleted.

Loading

0 comments on commit 07c3525

Please sign in to comment.