ProgrammingLooking for someone to help create a discord bot
Posted:
ProgrammingLooking for someone to help create a discord botPosted:
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
I wanna keep it simple, I'm down to pay although would be nice to get it free or cheap.
Lets get some backstory and what it'll be used for. well I and a friend have started a community related around Call of Duty, Scrims, Giveways and all of that good stuff, of course it was a really requested thing to add a Black Ops 4 stat tracker. now I understand you may say but someone has released one, that is correct there's a public one which I feel could be improved on a lot due to it sending a picture of the stats, whilst it's cool the quailty isn't great. although that isn't my main reason anyway, I'm wanting to add to this bot so it'll do more than track stats, allowing me to elimiate other bots that take up room. |
#2. Posted:
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Just to help you along in the right direction, you can use the callofdutytracker api to get game stats for Black Ops 4.
Call of Duty Tracker You can parse this json to use in your bot/webhook. For example, here's my stats based on Battle.net platform and my username: https://i.imgur.com/4F5FYE6.png |
- 1useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
-Deano wrote Just to help you along in the right direction, you can use the callofdutytracker api to get game stats for Black Ops 4. I've actually got the API and stuff, I had a friend look over it and he ended up getting most of the stuff, but I'm still rather lost myself so going to keep looking into it until maybe I can get someone with a brain to help me out Thank you though, gives me a bit more of an idea. |
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
If you need help, you can always post the specific issue on here and I'm sure someone will help you out. You'll find people are more willing to help you along with an issue rather than solving it entirely for you in the first place. |
- 0useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
-Deano wrote If you need help, you can always post the specific issue on here and I'm sure someone will help you out. You'll find people are more willing to help you along with an issue rather than solving it entirely for you in the first place. Yeah I wont lie I'm stuck at step one, like creating the bot got it, but pulling info from API & making it work as a command etc etc, I'm near enough lost in the middle of a jungle stranded in the middle of nowhere hahaha. Although if I make some progress, I will make sure it's very specific. |
- 0useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
What language have you made the bot in? Might help to point you in the right direction. |
- 0useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
-Deano wrote What language have you made the bot in? Might help to point you in the right direction. I've legit just followed a guide using discord.io as I'm still learning through the stuff, probably will try and refresh my mind on Javascript and what not eventually, just trying to manage so much stuff right now it's not easy |
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Assuming the rest of the bot is Javascript then, you can get the data from the API using an ajax request like so:
I'll leave the username capture to you. |
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
Status: Offline
Joined: Jan 10, 201212Year Member
Posts: 7,913
Reputation Power: 7437
-Deano wrote Assuming the rest of the bot is Javascript then, you can get the data from the API using an ajax request like so: Thank you for your help, I'll start to investigate on that and see if I can make some progress |
- 0useful
- 0not useful
#10. Posted:
Status: Offline
Joined: May 02, 201212Year Member
Posts: 1,129
Reputation Power: 34
Status: Offline
Joined: May 02, 201212Year Member
Posts: 1,129
Reputation Power: 34
If it's API based, you can use any language that you want. My suggestion is that you use an API wrapper instead of writing one yourself. However, you are free to use any language that you want.
Step 1: Select a language that's comfortable for you. It can be PHP, JS, Java, C, etc... Step 2: Build the bot/application with dummy data. Just build it so it can send over data to discord. Step 3: Integrate the COD API. Step 4: Set up observers, events, and or cronjobs to automatic the data. Of course, you will have to design the bot to be scalable, secure, and efficient. Overall, start simple then add as you go -- no need to make an overcomplex bot. Suggestion Use a discord sdk (REST API client). Save you all the troubles of building one yourself. You just have to configure the sdk then call the correct functions! Boom. Done. |
- 0useful
- 0not useful
Users browsing this topic: None