forked from an/flokati
Rename news -> rss.
This commit is contained in:
parent
3a93c6324a
commit
0674ac6d87
2 changed files with 6 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
// and is subject to the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
|
||||
// license.
|
||||
|
||||
package news
|
||||
package rss
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
|
@ -64,7 +64,7 @@ func itemHandler(feed *rss.Feed, ch *rss.Channel, newitems []*rss.Item) {
|
|||
return
|
||||
}
|
||||
for _, ni := range newitems {
|
||||
sayCh <- fmt.Sprintf("%s\n*** [NEWS] %v - %v", "*", ni.Title, ni.Links[0].Href)
|
||||
sayCh <- fmt.Sprintf("%s\n*** [RSS] %v - %v", "*", ni.Title, ni.Links[0].Href)
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue