Comments (5)
I would like to work on this issue.
from bots.
Okay, so I have made some progress.. Here's the tweet function that I created this function for the tweet.. Not showing my tokens for obvious reasons..
func tweet(ID int64) {
//Initializing twitter API
config := oauth1.NewConfig("consumerKey", "consumerSecret")
token := oauth1.NewToken("accessToken", "accessSecret")
httpClient := config.Client(oauth1.NoContext, token)
Tclient := twitter.NewClient(httpClient)
tweets, resp, err := Tclient.Timelines.HomeTimeline(&twitter.HomeTimelineParams{
Count: 1,
})
bot.Send(tbot.NewMessage(ID, tweets.Text))
}
Now afaik, the type tweet in the twitter-go package does indeed contain a Text method, given here.. https://godoc.org/github.com/dghubble/go-twitter/twitter#Tweet
So this is the progress so far, but if you can check it out a little, that'd be great too, otherwise it's just almost done I guess.
from bots.
Hey @PrimalPimmy, Thanks for showing interest in this. If you have any queries regarding setting up or the issue feel free to ask here 😊
from bots.
Hey @PrimalPimmy Did you progress with the issue? Feel free to ask if you need any help in implementing it 😄
from bots.
Hey @PrimalPimmy Did you progress with the issue? Feel free to ask if you need any help in implementing it 😄
Slowly getting the grasp of Golang. But still learning about how to implement the twitter API in the bot, if you can provide any useful links for this, that'd be helpful!
from bots.
Related Issues (20)
- This bot works
- Check 2 HOT 2
- Handle empty /fetchnote query HOT 3
- Fix broken link to Botfather in contributing.md HOT 1
- Change timezone used for saving meetups and scheduling reminders HOT 2
- Auto delete " I don't know that command " after a few seconds HOT 1
- Error handling HOT 2
- Bot crashes when '/nextmeetup' is executed HOT 2
- Add OSDC Discord Server link HOT 2
- Update documentation HOT 1
- If user delete's their bot command message, the bot auto-deletes its own message. HOT 2
- Add a default case for "I don't know that command" HOT 4
- Greeting messages are not been delivered HOT 1
- Add and configure ESLint and Prettier for Discord Bot HOT 1
- Default message fired up when using valid commands
- Add command handlers HOT 1
- (suggestion): add a /warn, /ban feature
- Check scheduled meetups date in /nextmeetup HOT 1
- Reminders working randomly
- Add link buttons to welcome message HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bots.